O'Reilly logo

Sams Teach Yourself SQL in 10 Minutes by Ben Forta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

INSERT SELECT

INSERT SELECT inserts the results of a SELECT into a table. See Lesson 15, "Inserting Data," for more information.

INSERT INTO tablename [(columns, …)]
SELECT columns, … FROM tablename, …
[WHERE …];

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required