Procedures and Triggers

From InterBase
Jump to: navigation, search

Go Up to Language Reference Guide


InterBase procedure and trigger language is a complete programming language for writing stored procedures and triggers in isql and DSQL. It includes:

  • SQL data manipulation statements: INSERT, UPDATE, DELETE, and singleton SELECT.
  • Powerful extensions to SQL, including assignment statements, control-flow statements, context variables, event-posting, exceptions, and error handling.

Although stored procedures and triggers are used in entirely different ways and for different purposes, they both use procedure and trigger language. Both triggers and stored procedures can use any statements in procedure and trigger language, with some exceptions:

  • OLD and NEW context variables are unique to triggers.
  • Input and output parameters, and the SUSPEND and EXIT statements are unique to stored procedures.

The Data Definition Guide explains how to create and use stored procedures and triggers. This chapter is a reference for the statements that are unique to trigger and procedure language or that have special syntax when used in triggers and procedures.

Topics