MySQL How do you INSERT INTO a table with a SELECT subquery returning multiple rows?

INSERT INTO Results (People, names )
   SELECT d.id, 'Henry'
   FROM Names f
   JOIN People d ON d.id  = f.id

Combine the static string Henry with your SELECT query.

Leave a Comment