0% found this document useful (0 votes)
27 views1 page

Total Record

The document discusses pagination for database queries by calculating the total number of pages needed based on the total records and limit per page, and performing queries with limits and offsets to fetch records for each page.

Uploaded by

Abdul Mateen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

Total Record

The document discusses pagination for database queries by calculating the total number of pages needed based on the total records and limit per page, and performing queries with limits and offsets to fetch records for each page.

Uploaded by

Abdul Mateen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Total record =?

Limit per page=?

Total pages=ceil(total record/limit per page);

Select with Limit offset, limit

Limit 0,3

Limit 3,3

Limit 6,3

Limit 9,3

Offset=(page_number-1) *limit;

You might also like