DCL
No. |
Description |
Syntax |
Difference |
---|---|---|---|
1 |
Set user-defined variables. |
SET |
|
2 |
Support the SET TRANSACTION syntax. |
SET TRANSACTION |
In MySQL, you can set the transaction isolation level and read/write mode for the current session and global. In GaussDB, you need to set the b_format_behavior_compat_options parameter to include set_session_transaction for the current session. The global setting takes effect only for the current database. |
3 |
Set names with COLLATE specified. |
SET [ SESSION | LOCAL ] NAMES {'charset_name' [COLLATE 'collation_name'] | DEFAULT}; |
GaussDB does not allow charset_name to be different from the database character set. For details, see "SQL Reference > SQL Syntax > S > SET" in Developer Guide. |
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