The INSERT statement is used to add a row to a table. You can specify columns and the order of columns.
- Use the INSERT INTO Statement to add rows to a table. … So here we're going to use the test database. … And I'm going to start by just executing … this one query. … So I can highlight that and press F9 … and that will execute the query. … And you see that our customer table … has three rows in it, … Bill, Mary, and Bob, the Smith's. … And if I want to, I can insert a … row, into this table, by executing this query. … Press F9, and then I can go back up here … and I can execute the select again, … and you see that we now have a fourth row. … So I used this INSERT INTO … and I named the table, customer … and then I list in parentheses, the columns … that I want to insert. … And so you notice I have the name, address, … city, state, zip columns, … and the values in parentheses. … Each literal values in single quotes. … Got Fred Flintstone, his address, city, … state, and zip. … And there they are, in the results. … I can also if I want to, … I can insert a row and only populate … some of the columns. …
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.