
Lesson 05 · 12 min
Changing data, transactions, indexes
INSERT, UPDATE, DELETE, carefully. A transaction is all or nothing.
INSERT adds rows, UPDATE changes them, DELETE removes them. RETURNING gives back the changed rows without a separate SELECT. A transaction (BEGIN … COMMIT) groups several changes: all of them apply or none. An index speeds up lookups by a column, like the alphabetical index in a book.
Sign in to continue
The rest of this lesson opens after sign up
The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.