Hi
Here's what I'm trying to get to work:
UPDATE product_list AS prod_list JOIN mem_background AS mem_bg ON prod_list.id = mem_bg.prod_id SET prod_list.price = 2.23 AND mem_bg.price = 2.23 WHERE prod_list.category = 3 AND prod_list.name NOT LIKE '%Animated%'
Basically I have 2 tables called Product List and Mem Background. They have a common column in that prod_list.id is the same as mem_bg.prod_id
I'm not very good with MySql and have been reading the docs on UPDATE and JOIN all afternoon but still can't get it to work.
Do I need to use a comma instead of JOIN ?
Any help would be really appreciated.
Many thanks
John ;-)
I don't make mistakes, I'm merely beta-testing life.
Here's what I'm trying to get to work:
UPDATE product_list AS prod_list JOIN mem_background AS mem_bg ON prod_list.id = mem_bg.prod_id SET prod_list.price = 2.23 AND mem_bg.price = 2.23 WHERE prod_list.category = 3 AND prod_list.name NOT LIKE '%Animated%'
Basically I have 2 tables called Product List and Mem Background. They have a common column in that prod_list.id is the same as mem_bg.prod_id
I'm not very good with MySql and have been reading the docs on UPDATE and JOIN all afternoon but still can't get it to work.
Do I need to use a comma instead of JOIN ?
Any help would be really appreciated.
Many thanks
John ;-)
I don't make mistakes, I'm merely beta-testing life.