select * from 表 where 列=3 or (列>0 and 列<=10

解决方案 »

  1.   

    select * from 表 where 列=3 or (列>0 and 列<=10)
      

  2.   

    因为是nvarchar型的,不能判断大小吧?
      

  3.   

    sql会做隐式转换的
    select * from 表 where 列=3 or (列>0 and 列<=10)
    或:
    select * from 表 where cast(列 as int)=3 or (cast(列 as int>0 and cast(列 as int)<=10)
      

  4.   

    当然可以,用于 Unicode 数据类型(nchar、nvarchar 和 ntext)的排序次序,排序次序定义字符的排序序列