5.4 Summary
In this chapter, we went through the DML sublanguage. After creating a network of playground tables, we learned about INSERT, UPDATE, and DELETE statements—which are frequently addressed in the life of a developer. We also learned about DML automation options through stored procedures and triggers.
DML statements are staples of SQL, but they are not always sufficient. Sometimes, we have a stored procedure in which we run DML operations on multiple tables. In such cases, we usually want either all the statements to execute successfully or no statement to be executed in case one of them would cause an error.
SQL has a special sublanguage exactly for this purpose, and it’s called TCL. We’ll learn about it in the next chapter.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access