tencent cloud

All product documents
Cloud Log Service
LIMIT Syntax
Last updated: 2024-01-20 17:25:15
LIMIT Syntax
Last updated: 2024-01-20 17:25:15
The LIMIT syntax is used to limit the number of rows in the output result.

Syntax Format

Read the first N rows:
limit N
Read N rows starting from row S:
offset S limit N

Syntax Example

Get the first 10 rows of results:
* | select status, count(*) as pv group by status limit 10
Get the results for rows 3 to 42 (40 rows in total):
* | select status, count(*) as pv group by status offset 2 limit 40

Restrictions

Metric
Restriction
Remarks
Number of SQL results
Each SQL returns up to 10,000 results.
Default: 100; Maximum: 10,000

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon