Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 MySQL 查询中使用多个“between”子句?例如,如果我想选择身高在 20 到 25 之间、体重在 50 到 70 之间的学生。
WHERE height BETWEEN 20 AND 25 AND weight BETWEEN 50 AND 70
请记住,您的条件被一个接一个地应用于每一行,而不是“一次整个表”。