当前位置:网站首页>[MySQL learning notes 12] paging query

[MySQL learning notes 12] paging query

2022-06-21 17:26:00 yqs_ two hundred and eighty-one million eight hundred and seven

Basic grammar

select Field list from Table name limit Starting index , Number of query records ;

matters needing attention

1. Starting index from 0 Start
2. The starting index can be omitted , The default is 0

practice

# Before query 8 Employees 
select * from emp limit 8;
# After query 8 Employees 
select * from emp limit 8,8;
# Before querying age 10 Big employees 
select * from emp order by age desc limit 0,10;
原网站

版权声明
本文为[yqs_ two hundred and eighty-one million eight hundred and seven]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206211409238751.html