Learn how the INSERT statement is used to add a row to a table and how you can specify columns and the order of columns.
- To add rows to a table, you'll use the…insert into statement, first we're going to choose the…Test database this time, not World,…we're going to use the Test database.…And I'll start by listing…all of the data in the customer table.…So I say select asterix from customer…and you see that our customer table here…has three rows, Bill Smith, Mary Smith, and Bob Smith,…the Smith family.…And if we want to add another row into the table,…we would use the insert into statement,…and so I'm going to put that above the select statement…so we can see what's happened to the table…after we insert a row.…
And I'm going to come over here to the SQLChapter2.text file…and down here around line 39 where it says…movie 7, inserting data and I'm going to…copy this entire line and you'll notice…it goes there a little bit beyond the screen…and we'll take that entire line…and paste that into SID here,…and you can see it says insert into customer,…then we list the columns, with the names…of the columns separated by commas,…all within parenthesis and then the keyword values…
- Understanding SQL terminology and syntax
- Creating new tables
- Inserting and updating data
- Writing basic SQL queries
- 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
- Defining functions in PHP
Skill Level Beginner
2. SQL Overview
3. Fundamental Concepts
7. Dates and Times
Dates and times1m 52s
11. Views and Subselects
12. Defined Functions
13. 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.