mysql怎么查看前几条记录

MySQL取前几条记录的方法:

(推荐教程:mysql数据库学习教程)

返回前5行记录

select * from table LIMIT 5;

或者

select * from table LIMIT 0,5;

返回第6-15行数据

select * from table LIMIT 5,10;

来源:PY学习网:原文地址:https://www.py.cn/article.html

来源:PY学习网:原文地址:https://www.py.cn/article.html