Skip to content

Glossary: Go in Practice

Guarded update

An `UPDATE` whose `WHERE` also checks a condition, such as `AND stock >= ?`. It checks and changes the stock in one step, so Kettle & Crane can't oversell the last decaf.

Where the book teaches it

Related terms

Transactionsql.Result