If I have two tables with following columns:
Table1: [id,value]
Table2: [id,comment]
where id and value are numeric and comment is a string.
I need to retrieve all the ids with value>50 in the Table1.
And make an
INSERT IGNORE INTO table2 VALUES (id,"higher than 50");
for each one of those ids. How can I make it in MySQL? Thanks
1 Answer