SQL语句是这样的:select
        this_.id as id11_7_,
        this_.qu as qu11_7_,
        this_.name as name11_7_,
        this_.shenqingbianhao as shenqing5_11_7_,
        this_.address as address11_7_
    from
        persion this_     where
        this_.qu=3
    order by
        this_.id desc limit 3结果查询出来以后,数据并没有按id进行desc排序,查询出来的ID是:1
2
3但是如果只查id:
SQL语句是这样的:select
        this_.id as id11_7_
    from
        persion this_     where
        this_.qu=3
    order by
        this_.id desc limit 3
这个时候就对了,查询出来是:
3
2
1这是为什么啊???

解决方案 »

  1.   

    你这个是什么数据库?mysql以前有一个版本有这个BUG.
      

  2.   

    此ID非彼ID,我的个人看法,你自己看看吧!呵呵!
      

  3.   

    mysql的版本是: 5.0.51a-community-nt-log郁闷了,不知道是怎么回事。
      

  4.   

    用MYSQLDUMP导出为TXT文件,上传到www.access911.net/csdn,
    以供测试
      

  5.   

    已经上传了,http://www.access911.net/csdn/FileDescription.asp?mdb=2008-12-17&id=32&mode=3谢谢。
      

  6.   

    用你上述数据、SQL语句,结果
    6 3 6 6 1
    5 3 5 5 1
    4 3 4 4 1
    MYSQL版本:5.1。17
      

  7.   

    用你上传表定义、数据、SQL语句,结果
    6 3 6 6 1
    5 3 5 5 1
    4 3 4 4 1
    MYSQL版本:5.1。17