zhiqingstudy

Be a young person with knowledge and content

Usage Scenario of Pagination Query

When there is too much information in the database to be displayed on one page, it needs to be displayed page by page, which is called paging query.

1. Pagination query syntax

SELECT * FROM 'table name' limit start, count;

explain:
① And limit are keywords for paging query.

② Start indicates the beginning of the index line. The default value is 0.

③ And Count indicate the number of queries.

2. Example: Query the information of the first three lines of male students

SELECT * FROM `ceshi1` WHERE `gender` = ‘男’ LIMIT 0,3;

简写:SELECT * FROM `ceshi1` WHERE `gender` = ‘男’ LIMIT 3;

comment
head sculpture
Code:
Related

Why you shouldn't stay at a job for more than 2 years?

3 harsh facts long-distance relationships

how to keep your girlfriend interested in a long-distance relationship




Unless otherwise specified, all content on this website is original. If the reprinted content infringes on your rights, please contact the administrator to delete it
Contact Email:2380712278@qq.com

Filing number:皖ICP备19012824号