Multiple Inserts with a Subquery
Posted on March 20th, 2008 by Greg Allard in MySQL | Comments
Inserting multiple rows into a table is simple.
INSERT INTO table1 (id) VALUES (1), (2)
But what if you want to use a subquery to replace the explicit query with something more dynamic. This should be possible, however, searching the internet didn’t get me (or my colleagues) any closer to figuring this out. The obvious attempt of [...]