Help Center/
GaussDB(DWS)/
Tool Guide/
DSC/
SQL Syntax Migration Reference/
MySQL Syntax Migrating/
Data Manipulation Language (DML)/
UPDATE/
ORDER BY
Updated on 2024-07-19 GMT+08:00
ORDER BY
In MySQL, if an UPDATE statement includes an ORDER BY clause, the rows will be updated in the order specified by the clause.
Input
1 2 |
# ORDER BY UPDATE employees SET department_id=department_id+1 ORDER BY id; |
Output
1 2 |
-- ORDER BY UPDATE "public"."employees" SET "department_id" = department_id+1; |
Parent topic: UPDATE
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot