tags:

views:

76

answers:

3

How can i update multiple values in mysql , this didn't work

 UPDATE test SET list=0,
price= 0.00 cprice= 0.00 WHERE test.id =3232
+1  A: 

You're missing a comma:

UPDATE orders SET listPrice = 0, bloggerPrice = 0.00, customerPrice = 0.00 WHERE orders.id = 245745
Greg
+1  A: 

Try:

UPDATE orders 
SET listprice=0, bloggerPrice=0.00, customerPrice=0.00 
WHERE id=245745
James
+4  A: 

you need to put a comma between the two different values. For example:

UPDATE orders 
   SET listPrice = 0
     , bloggerPrice = 0.00
     , customerPrice = 0.00 
WHERE orders.id =245745
northpole
hm.. thanks this woorked forme :-)
streetparade