The true and False page of Java

Source: Internet
Author: User
True paging (what is the scope of the records in the database when you look at these records only):
Select s.* from (select *,row_number () over (order by Sloginid) as row_number from student) as Swhere row_number between? and?
False paging (it needs to check at least the number of records you want to record.) You look for 5, you might have checked dozens of, and then you'll check the 5 in it.):
Template select top rowsperpage from table where ID not in (select Top (curPage-1) *rowsperpage ID from table)
Example: SELECT Top 5 * from student where SID isn't in (select Top 5 sid from Student)----second page

The true and False page of Java

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.