select JY_LKJ_ZLZB.*
from JY_LKJ_ZLZB JY_LKJ_ZLZB,
JY_LKJ_PD pd
where JY_LKJ_ZLZB.id = PD.id
-- and JY_LKJ_ZLZB.lkjlx = '8802_06'
and (JY_LKJ_ZLZB.qdlc >=
700.5 or JY_LKJ_ZLZB.zdlc >=
700.5) --限制起点
and (JY_LKJ_ZLZB.qdlc <=
1000.5 or JY_LKJ_ZLZB.zdlc <= 1000.5) --限制终点
and JY_LKJ_ZLZB.id_lj =
'17'
and JY_LKJ_ZLZB.xbh =
'0001'
查700.5到1000.5之内的东西. 每个东西有个长度
重点在于东西在查询的边界上怎么处理 ,其实很easy 我就不知道为啥对别人就那么难
我都想吐槽了,我做前台你就别动,往我代码里添东西谁允许你了. 也不说一声,都看不懂搞的啥.
晕