Mysql Between Query与两列之间

时间:2016-08-09 23:43:30

标签: mysql

SELECT * FROM `location_details` WHERE 24.776 BETWEEN startLatitude And endLatitude And 67.077 BETWEEN startLongitude And endLongitude

我想得到这些列之间的行,我有开头和经度, 开始和结束纬度用户仅在纬度和经度上提供我想要找出那些区域和高度所在的区域

1 个答案:

答案 0 :(得分:0)

尝试使用

SELECT * FROM `location_details` WHERE (24.776>=startLatitude And 24.776<=endLatitude) And (67.077>= startLongitude And 67.077<=endLongitude)