Paging in nhib.pdf

Source: Internet
Author: User
For example, some paging data should be frequently used in nhib.pdf: CRI. setfirstresult ( 20 );
CRI. setmaxresults ( 10 );
Ilist list = CRI. List ();

The list variable will get the data of a certain page. The above is the data of 20th pages (from 0. I read the SQL statement it executes.

Nhib.pdf: Select top 30 this. ID as id0 _, this. title as title0 _, this. [memo] From Batch this where (this. builderguid = @ P0 and this. istemp = @ P1)

"Top 30" means that the data obtained by the query includes the data of the previous pages in addition to the data on the current page. Try to change the values of first and max. The final top record is equal to the value of first * max. Of course, the list will only return 10 records to us. This is what we need. The more efficient this paging method is, the more optimized it will be...

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.