Editing Function/Procedure Definition

Edit the function/procedure definition under the Definition tab. Definition consists of a valid SQL procedure statement. This can be a simple statement such as SELECT or INSERT, or it can be a compound statement written using BEGIN and END. Compound statements can contain declarations, loops, and other control structure statements.

Example:
    BEGIN
      RETURN CONCAT('Hello', name1, ' and ',name2, '!');
    END
    

Hint: To customize the view of the editor and find out more features for sql editing, see Editor View and More Features.

Parameter
Define function/procedure parameter.

Return Type
This text box will be enabled only for creating a function. It indicates the return type of the function.

Type
Select the stored routines you wish to create from the drop-down list, i.e. PROCEDURE and FUNCTION.