SQL: Inserting, Updating & Deleting Data

Wishlist Share

About Course

Learn to change data safely with SQL. Write INSERT, UPDATE and DELETE statements, insert from queries, avoid the infamous missing WHERE clause, use transactions to group changes and undo mistakes, and protect applications from SQL injection with parameterised queries. Examples tested in SQLite.

Examples were tested in SQLite 3. Syntax for transactions, returning generated keys and autocommit behaviour varies between database products and tools. Always test data changes on a copy first.

What Will You Learn?

  • Insert single and multiple rows, and rows from a query Update and delete exactly the rows you intend Use transactions with COMMIT and ROLLBACK Prevent SQL injection with parameterised queries and work safely on live data

Course Content

Course Lessons

  • INSERT: adding rows
  • UPDATE and DELETE
  • Transactions: all or nothing
  • SQL injection and working safely

Sources & Further Reading
The official guidance this course is based on.

Final Assessment

Student Ratings & Reviews

No Review Yet
No Review Yet

Want to receive push notifications for all major on-site activities?

✕