Content deleted Content added
No edit summary |
EagleEye96 (talk | contribs) |
||
Line 1:
A '''user-defined function''' ('''UDF''') is a [[function (programming)|function]] provided by the user of a program or environment, in a context where the usual assumption is that functions are built into the program or environment.
==BASIC language==
Line 5:
==Databases==
In SQL databases, a
User-defined functions in SQL are declared using the <code>CREATE FUNCTION</code> statement. For example, a function that converts Celsius to Fahrenheit might be declared like this:
Line 39:
*Scalar functions.
*Inline table-valued functions.
*
Scalar functions return a single data value (not a table) with RETURNS clause. Scalar functions can use all scalar data types, with exception of timestamp and user-defined data types.
Line 123:
|title=LanguageManual UDF - Apache Hive - Apache Software Foundation
|work=
|publisher=
|date=26 June 2015}}
</ref> Hive enables developers to create their own custom functions with Java.<ref>
Line 140:
==External links==
*[http://msdn2.microsoft.com/en-us/library/aa258261(SQL.80).aspx Microsoft SQL Server reference for CREATE FUNCTION]
*[http://dev.mysql.com/doc/refman/5.5/en/adding-functions.html MySQL manual section on UDFs]
*[http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/index.jsp?topic=%2Fcom.ibm.db2.luw.sql.ref.doc%2Fdoc%2Fr0000917.html DB2 CREATE FUNCTION statement]
|