Lesson 15. Inserting Data
In this lesson, you will learn how to insert data into tables using the SQL INSERT
statement.
Understanding Data Insertion
SELECT
is undoubtedly the most frequently used SQL statement (which is why the last 14 lessons were dedicated to it). But there are three other frequently used SQL statements that you should learn. The first one is INSERT
. (You'll get to the other two in the next lesson.)
As its name suggests, INSERT
is used to insert (add) rows to a database table. Insert can be used in several ways:
• To insert a single complete row
• To insert a single partial row
• To insert the results of a query
You'll now look at each of these.
INSERT
and System Security Use of the INSERT
statement might require special ...
Get Sams Teach Yourself SQL™ in 10 Minutes, Third Edition now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.