Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Limit offset Application method of mysql

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Let me tell you a little bit about the limit offset application of mysql. Have you learned about similar topics before? If you are interested, let's take a look at this article. I believe it will be of some help to you after reading the limit offset application method of mysql.

Traditional writing method

Limit offset, number of strips taken out

SELECT * FROM yundou_management.service_order where order_status=1 order by id asc limit 108

Support the new writing method after mysql5, making it easier for people to understand

Number of strips taken out by limit offset offset

SELECT * FROM yundou_management.service_order where order_status=1 order by id asc limit 8 offset 108

If you get the specified number of bars from the first one, the offset is 0

SELECT * FROM yundou_management.service_order where order_status=1 order by id asc limit 0J8; SELECT * FROM yundou_management.service_order where order_status=1 order by id asc limit 8 offset 0

It can also be simplified as follows

SELECT * FROM yundou_management.service_order where order_status=1 order by id asc limit 8

What do you think of mysql's limit offset application method this article, whether there is anything to gain. If you want to know more about it, you can continue to follow our industry information section.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report