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.
我知道我可以在两行之间选择元素,例如:
SELECT * FROM table WHERE id BETWEEN 20 AND 30
有人能告诉我如何在 20 到 30 和 40 到 50 之间的 4 行之间选择一个查询吗?
SELECT * FROM table WHERE id BETWEEN 20 AND 30 OR id BETWEEN 40 and 50