ORDER BY column name [DESC | ASC]
ORDER BY column name 1[DESC | ASC], column name 2[DESC | ASC].DESC or ASC, the system sorts the analysis results in ascending order.Parameter | Description |
Column name | The column name refers to a log field name or an aggregate function calculation result column. |
DESC | Sort data in descending order. |
ASC | Sort data in ascending order. |
* |SELECTstatus,count(*) AS pvGROUP BYstatusORDER BYpv DESC
* |SELECTremote_addr,avg(request_time) AS request_timeGROUP BYremote_addrORDER BYrequest_time ASCLIMIT10
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback