7.5 SQL Programming

For the interactive SQL statements shown so far, we assumed that there was a user interface that provided an environment to accept, interpret, and execute the SQL commands directly. However, database access can also be performed through programs.

7.5.1 SQL Persistent Stored Modules (PSMs)

Most DBMSs include an extension of SQL, called Persistent Stored Modules (PSMs), to allow users to write stored procedures, also called internal routines, which are program modules that are stored on the database server. The SQL/PSM standard is designed to provide complete programming language facilities, including constants, declared variables, assignment statements, control structures, and error handling. These facilities are used to ...

Get Databases Illuminated, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.