Insert from select

suggest change

You can insert data in a table as the result of a select statement:

INSERT INTO person SELECT * FROM tmp_person WHERE age < 30;

Note that the projection of the select must match the columns required for the insert. In this case, the tmp_person table has the same columns as person.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents