Defining MySQL Stored Procedures

The following properties are applicable to a MySQL Stored Procedure object.

Tab

Property

Description

Additional Information

General Definer Specifies the MySQL account to be used to check access privileges at procedure execution if the Security_Type is set to Definer  
Language Specifies the language in which the procedure is written

MySQL only supports SQL as language.

Is_Deterministic Specifies whether the stored procedure always returns the same results for a given parameters list  
SQL Data Access Specifies the nature of data use by the stored procedure

Modifies SQL Data: Indicates that the procedure contains SQL statements that might modify data

Reads SQL Data: Indicates that the statements in the procedure only read the data. They do not modify the data.

Contains SQL: Indicates that the statements in the procedure do not read or write data

No SQL: Indicates that there are no SQL statements in the procedure

Security_Type Specifies the privilege that is used when the procedure is called

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

Definer: Indicates that the privileges of the account that defined the procedure must be used.

Parameters

Parameters Indicates the list of procedure parameters  
Type Specifies the type of the parameter

In: Indicates that the parameter passes a value into the procedure

Out: Indicates that the parameter passes a value from the procedure back to the caller

InOut: Indicates that a caller initializes the parameter and the procedure can modify the parameter

Physical Data Type Specifies the data type of a parameter