Chapter 6

Understanding SQL’s Procedural Capabilities

IN THIS CHAPTER

Bullet Using embedded SQL statements

Bullet Working with compound statements

Bullet Creating flow of control statements

Bullet Working with stored procedures

Bullet Executing SQL statements with triggers

Bullet Taking advantage of stored functions

Bullet Granting privileges

Bullet Upping the stakes with stored modules

In its original incarnation, SQL was conceived as a data sublanguage, the only purpose of which was to interact with relational databases. It was considered acceptable to embed SQL statements within procedural language code written in some full-featured language to create a fully functional database application. For a long time, however, users wanted SQL ...

Get SQL All-in-One For Dummies, 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.