where a='a' and b='b' or c='c'?

解决方案 »

  1.   

    排序不行就转decimal试下,其他的没看明白啊
      

  2.   

    Sql="select   *   from   Sales   where   BigTypeID="&BigTypeID&"   and   test=1   order   by   id   desc"  
    这样试试Sql="select   *   from   Sales   where   BigTypeID='"&BigTypeID&"'   and   test=1   order   by   id   desc"  还有一个问题就是我在排序时,想用金额大小排序,我的金额是12.00的格式,但只要其中有一条数据超过百位数如   122.00时,排序就乱套了,请教下有没有什么解决方法看看你定义的金额数据类型
      

  3.   

    晕,我这样都不行,好象不能用这个查询条件似的,但我同样的语句在其它文件里面又可以使用的。字段类型不会有错的Sql="select * from Sales where test=1 order by id desc"