mysql怎么查询前10条数据?

mysql 没有top的用法。取而代之的是limit
语法为:limit m,n
省略n就可以得到你要的效果了。

select * from table1 order by column desc  limit 10

posted @ 2015-05-13 18:06  阳光温暖了心情  阅读(4352)  评论(0编辑  收藏  举报