Defining MySQL Functions

The following properties are applicable to a MySQL Function object.

Tab

Property

Description

Additional Information

General Definer Specifies the MySQL account to be used to check access privileges at function execution if the Security_Type is set to Definer  
Data_Access Specifies the nature of data use by the function

Contain_Sql: Indicates that the statements in the function do not read or write data

No_Sql: Indicates that there are no SQL statements in the function

Read_Sql_Data: Indicates that the statements in the function only read the data. They do not modify the data.

Modifies_Sql_Data: Indicates that the function contains SQL statements that might modify data

Security_Type Specifies the privileges to be used when the function is executed

Definer: Indicates that the privileges of the account named in the Definer clause of the function must be used

Invoker: Indicates that the privileges of the account that invokes the function must be used

Language Specifies the language in which the function is written

MySQL only supports SQL as language.

Is Deterministic Specifies whether the function always returns the same results for a given parameters list  
Return_Type Specifies the return type of the function  

Parameters

Parameters Indicates the list of function parameters  
Physical Data Type Specifies the data type of a parameter