Welcome @name to the Scribe's Desk! Until now you have only learned to read scrolls - you gave the Library a
SELECT command and received data back. But the Library is not a fossil. Every day new books arrive, prices change, new readers enroll, and some scrolls must be removed.Here, at the Scribe's Desk, you will learn to change the contents of the shelves. In the Library's language we call this art DML - Data Manipulation Language, the language of modifying data.
A scribe wields three powerful commands:
These are not innocent spells like
SELECT. SELECT only shows data - it breaks nothing. But INSERT, UPDATE and DELETE permanently change the Library's contents.Remember these words, for I will repeat them more than once: UPDATE and DELETE without WHERE act on the WHOLE shelf. One careless command can change the price of all books or wipe out all readers at once.
A good scribe always aims first (
WHERE) and only then writes. In this location I will teach you this discipline. Let us sit down to work!