Làm thế nào tôi có thể cập nhật nhiều giá trị trong mysql, này đã không làm việcCập nhật nhiều giá trị Mysql
UPDATE test SET list=0,
price= 0.00 cprice= 0.00 WHERE test.id =3232
Làm thế nào tôi có thể cập nhật nhiều giá trị trong mysql, này đã không làm việcCập nhật nhiều giá trị Mysql
UPDATE test SET list=0,
price= 0.00 cprice= 0.00 WHERE test.id =3232
bạn cần đặt dấu phẩy giữa hai giá trị khác nhau. Ví dụ:
UPDATE orders
SET listPrice = 0
, bloggerPrice = 0.00
, customerPrice = 0.00
WHERE orders.id =245745
Bạn đang thiếu một dấu phẩy:
UPDATE orders SET
listPrice = 0,
bloggerPrice = 0.00,
customerPrice = 0.00
WHERE
orders.id = 245745
Hãy thử:
UPDATE orders
SET listprice=0, bloggerPrice=0.00, customerPrice=0.00
WHERE id=245745
hm .. thanks this formo woorked :-) – streetparade