Adding rows to a table is accomplished using the INSERT INTO statement. Columns may be specified in any order and values may be added to some, all, or no columns in the statement.
- To add a row or rows to a table, … use the "INSERT INTO" statement. … Here we're going to be using the test database again, … and I'm going to start by creating a table. … I'll just go ahead and execute this, … and you can see that in the test database, … the test table has been created. … It has three columns: A, B, and C. … Now if I select everything from this table, … you'll notice that has three columns but it has no rows. … So if I want to insert data into this table, … I use the "INSERT INTO" statement, I specify the table test, … and values "1," "This," and "Right here!" … for integer and the two text columns. … So if I go ahead and execute this, … and then select everything from the table again, … you see we now have this one row … with "1," "This," and "Right here!" … Now I don't need to add data to all of the columns. … I can specify which columns I want to add data to … by putting those columns in parentheses, comma-separated, … before the values clause. … So I say "INSERT INTO," the table test, …
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.