------解决方案-------------------- sql 条件 CInt(你那列) > 5 and CInt(你那列) < 10
------解决方案-------------------- 接1楼,换这个 CLng(你那列) > 5 and CLng(你那列) < 10
------解决方案-------------------- access有 Cint sqlserver 有 cast ... as int
------解决方案--------------------
------解决方案--------------------
------解决方案--------------------
------解决方案-------------------- 如果那列为null的不要,就这样
C# code
mySelect = string.Format(@"SELECT * FROM Sheet1 WHERE CLng(IIf(IsNull(cloud_height),'-1',cloud_height)) > 5 and CLng(IIf(IsNull(cloud_height),'-1',cloud_height)) < 10)");
------解决方案--------------------
C# code
SELECT * FROM Sheet1 WHERE CLng(IIf(IsNull(cloud_height),'-1',cloud_height)) > 5 and CLng(IIf(IsNull(cloud_height),'-1',cloud_height)) < 10)");[