01-15-2014, 04:38 PM
Hi,
how can i edit things with the between command?
i try this, UPDATE t_npc SET a_attack_ = a_attack /2 BETWEEN 1 AND 2;
|
SQL for BETWEEN
|
|
01-15-2014, 04:38 PM
Hi, how can i edit things with the between command? i try this, UPDATE t_npc SET a_attack_ = a_attack /2 BETWEEN 1 AND 2;
01-15-2014, 05:02 PM
hmm I think you want to edit values in a specific range? what are those 1 and 2 supposed to be?
01-15-2014, 05:12 PM
hmm I think you want to edit values in a specific range? what are those 1 and 2 supposed to be? a_index
01-15-2014, 05:12 PM
It works like this : SELECT * FROM t_npc WHERE a_index BETWEEN 1 AND 10;
01-15-2014, 05:16 PM
It works like this : SELECT * FROM t_npc WHERE a_index BETWEEN 1 AND 10; yes, but i want to edit the attack in the same sql.
01-15-2014, 05:29 PM
UPDATE t_npc SET a_attack_ = "something" WHERE a_index BETWEEN 1 AND 10;
|
|
« Next Oldest | Next Newest »
|