DCL
Description |
Syntax |
Difference |
---|---|---|
Set user-defined variables. |
SET |
Difference in the length of a user-defined variable. For example:
|
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. |
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.