h2o 发表于 2018-9-20 14:34
update pre_forum_thread set price = 1000 where price between 400 and 1000


h2o 发表于 2018-9-20 19:45
说明你要么是学生要么还是太年轻,一个连续区间,一般使用between而不使用两个条件拼接,因为条件的拼接 ...
h2o 发表于 2018-9-21 09:36
这种大于小于的条件拼接是很容易手误弄成 a < 400 and a < 1000造成事故的。
至于你说的开闭区间,难道 ...
aidanallen 发表于 2018-9-20 16:16
DROP TABLE pre_forum_thread
| 欢迎光临 全球主机交流论坛 (https://loc.wget.at/) | Powered by Discuz! X3.4 |