|
Enhanced SQL Scripts Advantage Database Server v8.1: A Developer’s Guide by Cary Jensen and Loy Anderson © 2007 Cary Jensen and Loy Anderson. All rights reserved. |
|
|
A SQL script consists of two or more SQL statements, separated by semicolons. Advantage SQL scripts now support the creation of PSMs (persistent stored modules), an ANSI (American National Standards Institute) standard for adding a procedural capability to the SQL language.
These enhanced SQL scripts can now include variable declaration and assignment, conditional and looping control structures, cursor manipulation, and exception handling. These scripts can then be executed directly, or used to create stored procedure, triggers, or user-defined functions. Advantage SQL scripting capabilities are discussed in detail in Chapter 13.