Is there a way to insert rows based on a query with multiple rows result?
Something like this:
For each row in (select brand, date from table_A where ...) insert into table_B (field_1, field_2) VALUES (table_A.brand, table_A.date);
Using SQLite3 (preferred) / MySQL.
Thanks
Here's what I've tried:
insert into media_tags (fk_id_media, fk_id_tag) VALUES ( (select id_media from media where fullpath like "%C32%") , (select id_tag from tags where tagname='digital') )