Oracle Learning Eight paging (using RowNumber) (continuous)

Source: Internet
Author: User

RowNumber is a query of the dataset after adding a pseudo-column (continuous) to use it to produce a page based on an Oracle database, with statements similar to formulas that are directly applied as follows:

Select *  from (Select from (select*fromorder by ProcID))  where R between (pageindex-1)*+1and pageindex*pagesize

Where pageindex is the page number, pagesize is the maximum number of pages per page

Oracle's between. and.. Both front and back are closed intervals, which means that there are two-end numbers.

One more word: between and is the opposite of not between. And,

Not between. and.. Just take the opposite range of the specified range, that is, a record that is not in this range, and the user can replace it with a logical set of conditions.

Between and represents >= or <=, then not between. and.. means < or >.

Oracle Learning Eight paging (using RowNumber) (continuous)

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.