Other Statements
No. |
Description |
Syntax |
Difference |
---|---|---|---|
1 |
Transaction-related syntax |
Default database isolation level |
The default isolation level of M-compatible mode is READ COMMITTED, and that of MySQL is REPEATABLE READ. Only the READ COMMITTED and REPEATABLE READ isolation levels take effect in M-compatible databases. |
2 |
Transaction-related syntax |
Transaction nesting |
In M-compatible mode, nested transactions are not automatically committed, but in MySQL, they are automatically committed. |
3 |
Transaction-related syntax |
Autocommit |
In M-compatible mode, GaussDB is used for storage and the GaussDB transaction mechanism is inherited. If DDL or DCL is executed in a transaction, the transaction is not automatically committed. In MySQL, if DDL, DCL, management-related, or lock-related statements are executed, the transaction is automatically committed. |
4 |
Transaction-related syntax |
Rollback is required after an error is reported. |
If an error is reported for a transaction in an M-compatible database, rollback needs to be performed. There is no such restriction in MySQL. |
5 |
Transaction-related syntax |
Lock mechanism |
The M-compatible lock mechanism can be used only in transaction blocks. There is no such restriction in MySQL. |
6 |
Lock mechanism |
Lock mechanism |
|
7 |
PBE |
PBE |
|
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