【发布时间】:2020-04-14 20:16:25
【问题描述】:
我正在尝试创建一个 WHERE 语句,其中不包括坐标的平方。
我已经在一张表上保存了一些带有 X 和 Y 坐标的记录。
我想排除 x1 和 x2 以及 y1 和 y1 之间的记录
我正在使用
select * from dbo.records where (x not between x1 and x2) and (y not between y1 and y2)
但是第一个不是中间是删了我很多坐标
你知道获得正方形内坐标的方法吗?
谢谢
【问题讨论】:
标签: sql range coordinates where-clause between