使用top时,提示不支持

解决方案 »

  1.   

    mysql 里面用 limit 代替
      

  2.   

    使用limit即可。
    select * from t limit 0, 3;意指从0行起,取3行结果。(记录计数从0计起)
      

  3.   

    MySQL 是 limit 不是 TOP
    select * from table1 limit 10;并且LIMIT还可以设置起始点和数量
    取 21-20可以如下
    select * from table1 order by id limit 20,10 
      

  4.   

    具体可以参考手册中的例子和说明MySQL官方文档 http://dev.mysql.com/doc/refman/5.1/zh/index.html
      

  5.   

    yang_886 (yang_886)
      '截至2010-05-21 18:03:24  用户结帖率0.00% 当您的问题得到解答后请及时结贴.
    http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
    http://topic.csdn.net/u/20100428/09/BC9E0908-F250-42A6-8765-B50A82FE186A.html