select * from table_name limit 0,5

解决方案 »

  1.   

    哈哈,不同的系统间语法是有区别的,
    你的那种在SQLSERVER里是行的。
     建议多看看帮助和其他的资料。
      

  2.   

    顶层的兄弟我也有同感啊哈
    请问如何用用MySQL的查询语句从表中选择前十条记录?
    是用这条语句吗 select top 10 * from news order by dates desc 但是不对呀,去掉 top 10才对,WHY???
      

  3.   

    $ff="select * from table_name where id=$id";
    if 
    $id>=5
    echo"$ff";
    else
    echo"on";                         这个样子不知道对不对啊!不过我认为这句好像也对啊!                 select * from table_name limit 0,5