SQLite paging is the simplest in the world

Source: Internet
Author: User
At the beginning, I didn't pay attention to the syntax.
Later, we found that using SQLite paging is the simplest in the world.
If I want to go to the account table data from 11 to 20
Select * from account limit 9 offset 10;
The preceding statement retrieves data from the account table, skipping 10 rows and taking 9 rows

Well, I think this feature is enough for many medium-sized websites.

You can also write select * from account limit10, 9 in the same way as above.
This writing method is also supported by MySQL.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.