Einstein47
Programmer
Hey all,
I have an update like the following:
This works, but I have to modify the number each time and re-execute the SQL. Is there a way to have the SQL do the update for all values from table2?
Thanks in advance, Einstein47
("For every expert, there is an equal and opposite expert." - Arthur C. Clarke)
I have an update like the following:
Code:
UPDATE table1 SET itemID = 1
WHERE itemName = ( SELECT itemName FROM table2
WHERE itemID = 1 )
This works, but I have to modify the number each time and re-execute the SQL. Is there a way to have the SQL do the update for all values from table2?
Thanks in advance, Einstein47
("For every expert, there is an equal and opposite expert." - Arthur C. Clarke)