User-defined function: Difference between revisions

Content deleted Content added
or this works too
m wikify, de-stub (what else can really be said?)
Line 1:
A '''User Defined Function''', or '''UDF''', is an [[extension (computing)|extension]] to an [[SQL]] [[database server]] (like [[MySQL]]) that can be compiled for use in an SQL [[database query language|query]]. For example, sometimes it may be necessary to obtain a [[random]] number for use as a [[primary key]] (a function that MySQL does not internally support). In this case, a new, external function could be written and compiled to accomplish this task.

One sample of such a query could be: <code>SELECT GETRANDOMKEY();</code>.
 
Essentially, this external function becomes part of the server itself.
Line 6 ⟶ 8:
* [http://dev.mysql.com/doc/refman/5.0/en/adding-functions.html MySQL manual section on UDFs]
 
 
{{comp-sci-stub}}
[[Category:Computer programming]]
[[Category:Databases]]