select * from aa where testvalue<=1000 and testvalue>=0 数据库表aa 的testvalue字段是int型,而且数据库里有100多条记录其中testvalue值都为1000 居然读不出数据来。我是直接放到mysql里执行的。
郁闷的很啊。

解决方案 »

  1.   

    是不是数据表的int字段设定了长度了
      

  2.   

    你把testvalue的类型定成varchar了吧?
      

  3.   

    select * from aa where testvalue>=0
    你一个个条件试试呢
    然后在用第二个条件
    条件加括号呢??
      

  4.   

    select * from aa where testvalue <='1000' and testvalue>='0'
    试试,谁知道mysql会是什么口味~
      

  5.   

    修改一下试试select * from aa where testvalue <=1200 and testvalue>=0