User Defined Function (UDF)
http://codeguru.earthweb.com/cpp/data/mfc_database/misc/article.php/c12615/MySQL-UDFs.htm
1. What Is a User Defined Function?
Basically, a User Defined Function (UDF) is a piece of code that extends the functionality of a MySQL server by adding a new function that behaves just like a native (built-in) MySQL function, such as abs() or concat(). UDFs are written in C (or C++ if you really need to). Maybe there is a way to write them in BASIC, .NET, or whatever but I don't see why anybody would want to do that.