MySQL 查询:BETWEEN A AND B OR C 列
MySQL Query: column BETWEEN A AND B OR C
我想知道我是否可以使用这样的查询:
"DELETE FROM table WHERE id (BETWEEN 1 AND 5) OR = 8;"
我想达到的目标:我想说;如果我的 id = 8.
很遗憾,我只找到查询和问题如何搜索
像这样的事情。
"DELETE FROM table WHERE id BETWEEN 1 AND 5 AND `email`='sarah@sarah.com';"
或者我是否也必须这样做:
"DELETE FROM table WHERE id BETWEEN 1 AND 5 OR id = 8;"
感谢您对此的简短输入...
干杯
仪式:
DELETE FROM table WHERE (id BETWEEN 1 AND 5) OR id = 8
SELECT:
SELECT * FROM table WHERE (id BETWEEN 1 AND 5) OR id = 8
我想知道我是否可以使用这样的查询:
"DELETE FROM table WHERE id (BETWEEN 1 AND 5) OR = 8;"
我想达到的目标:我想说;如果我的 id = 8.
很遗憾,我只找到查询和问题如何搜索 像这样的事情。
"DELETE FROM table WHERE id BETWEEN 1 AND 5 AND `email`='sarah@sarah.com';"
或者我是否也必须这样做:
"DELETE FROM table WHERE id BETWEEN 1 AND 5 OR id = 8;"
感谢您对此的简短输入...
干杯
仪式:
DELETE FROM table WHERE (id BETWEEN 1 AND 5) OR id = 8
SELECT:
SELECT * FROM table WHERE (id BETWEEN 1 AND 5) OR id = 8