码迷,mamicode.com
首页 > 数据库 > 详细

mysql 查询前几条数据

时间:2018-12-29 11:23:42      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:tps   highlight   tab   http   .com   class   index   target   dex   

limit是mysql的语法
select * from table limit m,n
其中m是指记录开始的index,从0开始,表示第一条记录
n是指从第m+1条开始,取n条。
select * from tablename limit 2,4
即取出第3条至第6条,4条记录

mysql 查询前几条数据

标签:tps   highlight   tab   http   .com   class   index   target   dex   

原文地址:https://www.cnblogs.com/liangliping/p/10193745.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!