MySQL多行UPDATE

时间:2011-06-14 11:33:50

标签: mysql

如何加入一个查询:

UPDATE products SET products_price='50.0000' where products_id in (SELECT products_id FROM products_description where products_name='Dual 111 HDMI mit USB') LIMIT 1;
UPDATE products SET products_price='36.4900' where products_id in (SELECT products_id FROM products_description where products_name='HYUNDAI 5003') LIMIT 1; 

1 个答案:

答案 0 :(得分:0)