Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Modifying Data with SQL!
You have completed Modifying Data with SQL!
Preview
In this video, we'll review all the ways you can insert data.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
To create a row use the INSERT INTO
keywords, followed by the table name,
0:00
followed by the VALUES keyword,
then the values in parentheses.
0:03
This is good if you want to
insert data into all columns.
0:08
Remember you can use NULL in your ID
column to trigger the auto increment.
0:11
Alternatively, if you're not filling in
all of the columns with your own values,
0:16
specify a set of column names between
the table name and the values keyword.
0:22
The ordering of the columns and
the values must match.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up