我想在多个字段上执行WHERE。它也必须介于两个数字之间。我想你可以通过查看代码来理解它:
SELECT * FROM locations WHERE(lat BETWEEN 8 AND 100) AND WHERE(lng BETWEEN 1 AND 4)
感谢您的回复
答案 0 :(得分:5)
你几乎就在那里,只是你不需要两次使用WHERE
,例如:
SELECT *
FROM locations
WHERE lat BETWEEN 8 AND 100
AND lng BETWEEN 1 AND 4;