Database Mysql-oracle-db2-sqlserver Paging Query

Source: Internet
Author: User

1. mysql Paging query

(1) Keyword: LIMIT beginindex, MaxRow

(2) Example:

The limit clause can be used to limit the amount of data returned by the SELECT statement, which has one or two parameters. If two arguments are given, the first parameter specifies the position of the first row returned in all data, starting with 0 (note not 1), and the second parameter specifies the maximum number of rows to return . For example:
-- starting from Beginindex line, query MaxRow row Select *  from Table Limit Beginindex,maxrow -- starting with 10 rows, query 20 rows, that is, query 10~30 rows of data Select *  from Table Ten,
--return to the first 10 rowsSelect *  from Table WHERE... LIMITTen; --return to the first 10 rowsSelect *  from Table WHERE... LIMIT0,Ten;--return 第10-30 rows of dataSelect *  from Table WHERE... LIMITTen, -;
2. Oracle Paging Query
3. DB2 paging Query 4. SQL Server Paging Query

Database Mysql-oracle-db2-sqlserver Paging Query

Related Article

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.