OrderBy & Limit
OrderBy
Function
This clause is used to sort data in ascending order on a time attribute.
Precautions
Currently, only sorting by time attribute is supported.
Example
Sort data in ascending order on the time attribute.
SELECT * FROM Orders ORDER BY orderTime;
Limit
Function
This clause is used to constrain the number of rows returned.
Precautions
This clause is used in conjunction with ORDER BY to ensure that the results are deterministic.
Example
SELECT * FROM Orders ORDER BY orderTime LIMIT 3;
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot