Procedures
Creating procedures
-
Go to Databases.
-
Select the database in which you want to create a procedure.
-
Select the schema in which you want to create a procedure.
-
Go to DB objects > Procedures.
-
Click Create procedure.
-
Type a name for the procedure. The name can be up to 128 characters long and it must begin with a letter or underscore and cannot contain embedded spaces. The name must be unique. If the name contains special characters, enclose it in double quotation marks.
-
Specify the arguments. This is to specify the parameter type list of the procedure. For example,
int. -
Specify the return type of your procedure. For example,
int. -
Specify the procedure body. This is the source code for the body of the stored procedure. For example
BEGIN RAISE NOTICE 'The customer name is David'; END; -
Specify whether to replace the procedure.
-
Specify whether to include an execute clause.
-
Click Create.
You can select Assign owner and Drop options from the overflow menu.