CREATE FUNCTION
suggest changeSyntax
- CREATE FUNCTION function_name ( [list_of_parameters] ) RETURNS return_data_type AS BEGIN
function_body
RETURN scalar_expression
END
Parameters
Argument | Description |
—— | —— |
function_name | the name of the function |
list_of_parameters | parameters that the function accepts |
return_data_type | the type that the function returns. Some SQL data type |
function_body | the code of the function |
scalar_expression | the scalar value returned by the function |
Remarks
CREATE FUNCTION creates a user-defined function. The syntax above is not portable; parameter lists and function bodies differ by dialect. Functions may return a scalar value or a table.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents