Contents Index Check if you need to change the command delimiter Use fully-qualified names for tables in procedures

ASA SQL User's Guide
  Using Procedures, Triggers, and Batches
    Tips for writing procedures

Remember to delimit statements within your procedure


You should terminate each statement within the procedure with a semicolon. Although you can leave off semicolons for the last statement in a statement list, it is good practice to use semicolons after each statement.

The CREATE PROCEDURE statement itself contains both the RESULT specification and the compound statement that forms its body. No semicolon is needed after the BEGIN or END keywords, or after the RESULT clause.


Contents Index Check if you need to change the command delimiter Use fully-qualified names for tables in procedures