How do transactions work? What is the syntax for transactions? How do you roll back a partially completed transaction? Learn the answers to these questions in this video.
- [Instructor] The syntax for using transactions … in SQL is pretty simple. … Here we're going to be using the test database, … and I've pasted into this SQLiteStudio some SQL … from the chapter nine exercise files. … We don't have the widgetInventory … and widgetSales tables in here, … so I don't need to drop them, … but if I do, I do the DROP TABLE IF EXISTS, … and that doesn't really have any effect. … We're going to create a couple of tables. … The widgetInventory table has an id, a description, … and quantity onhand, and the widgetSales table … has inventory id linked back to the inventory, … the widgetInventory table, quantity, and price. … And so I'm going to go ahead and execute … both of these CREATE TABLE statements, … and you notice that those tables … have now been created in our test database. … I'm going to scroll down here, and we'll insert … these rows into widgetInventory, just three rows … of three items, rock, paper, and scissors, … with quantity of 25 for each of them. …
This course was created by Bill Weinman. We are pleased to offer this training in our library.
- How databases are organized
- Selecting rows and columns
- Creating new tables
- Inserting and updating data
- Sorting and filtering
- Accessing related tables with JOIN
- Working with strings
- Understanding numeric types
- Using aggregate functions and transactions
- Automating data with triggers
- Creating views
- Using CRUD functions
Skill Level Beginner
2. SQL Overview
3. Fundamental Concepts
7. Dates and Times
Dates and times2m 6s
11. Views and Subselects
12. A Simple CRUD Application
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.