Posts: 473
Threads: 50
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Dec 2011
Reputation:
0
UPDATE t_item SET a_price = 200000, WHERE a_level = 96, a_flag = 62; it dont work for me why
Posts: 610
Threads: 13
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jun 2011
Reputation:
0
Why dont u use the query I made, it works perfectly o.o
Posts: 473
Threads: 50
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Dec 2011
Reputation:
0
UPDATE t_item SET a_price = a_price / 2 WHERE a_level > 96 AND a_flag = 62 dont work for me
Posts: 610
Threads: 13
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jun 2011
Reputation:
0
Try to remove the AND a_flag = 62
Posts: 473
Threads: 50
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Dec 2011
Reputation:
0
UPDATE t_item SET a_price = a_price / 2 WHERE a_level > 96 dont work
[ATTACH=CONFIG]1038[/ATTACH]
Posts: 313
Threads: 20
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jul 2011
Reputation:
0
Your error, why do you use commas in the SQL command?
and when you dont put semicolon it will take all the lines and save them as 1 single instruction, which your fist line shows an error (you have a comma before WHERE)
Posts: 473
Threads: 50
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Dec 2011
Reputation:
0
UPDATE t_item SET a_price = a_price / 2 ;WHERE a_level > 96 AND a_flag = 62