Hi, i recently started using mysql and have a problem. How can i run a multi-table update? I mean, update one table regarding the results of a search in another table, like this:
UPDATE software,hardware SET software.name = 'example' WHERE sofwtare.company IN (SELECT hardware.company FROM hadware WHERE hardware.country = 'Spain')
It gives me a syntax error in the select part, and i don´t know why, guess is something stupid but i don´t get it. Can you help me?
If i run this update, in the update.log would appear like that or with the select part already processed?
Thank you very much!
UPDATE software,hardware SET software.name = 'example' WHERE sofwtare.company IN (SELECT hardware.company FROM hadware WHERE hardware.country = 'Spain')
It gives me a syntax error in the select part, and i don´t know why, guess is something stupid but i don´t get it. Can you help me?
If i run this update, in the update.log would appear like that or with the select part already processed?
Thank you very much!