Locked lesson.
About this lesson
We will insert our own records into a database using INSERT INTO
Exercise files
Download this lesson’s related exercise files.
INSERT Statement.docx59 KB INSERT Statement - Solution.docx
59.5 KB
Quick reference
INSERT Statement
Insert allows us to put data INTO our table.
When to use
Use it any time you want to add data to your table with SQL.
Instructions
INSERT INTO [dbo].[Current_Customers] ([First Name], [Last Name], [Email Address], [Phone Number], [Age], [City], [Country])
VALUES ('Tracy', 'Smitherton', 'tracy@email.com', '222-667-8645', '42', 'Mt. Vernon', 'USA')
This will insert the information for a new customer into the current customer database.
Hints & tips
- Insert puts data into your table using SQL
- The columns in the first line need to mirror the data in the second line
Lesson notes are only available for subscribers.