if je="1" then
sql="select * from su where xy-xy2='0' order by sj desc"
end if
if je="0" then
sql="select * from su where xy-xy2>'0' order by sj desc"
end if
...
其中的xy,xy2多是int类型
...全文
1254打赏收藏
一句关于数字比较的sql语句
if je="1" then sql="select * from su where xy-xy2='0' order by sj desc" end if if je="0" then sql="select * from su where xy-xy2>'0' order by sj desc" end if ... 其中的xy,xy2多是int类型