varchar 是字符串,只能做字符串比较 "8">"200",或者"008"<"200"
建议改为数字型
若非要用varchar , 你必须在前面补位,或者用转换函数

解决方案 »

  1.   

    select * from sales where convert(numeric(12,2),规模)>200
      

  2.   

    兄弟们改成哪种比较合适?我设计最大是5位数~~~int怎么样?
      

  3.   

    select * from sales where convert(int,规模)>200
      

  4.   

    select * from sales where convert(numeric(12,2),规模)>200
    select * from sales where convert(int,规模)>200兄弟谁能解释一下以上2句话的含义?后者的速度明显快一点
      

  5.   

    Select * From sales WHERE 规模*1>200這樣就OK啦!!!