transaction_read_only specifies whether to enable just read-only transactions.
| Attribute | Description |
|---|---|
| Type | bool |
| Default value | False |
| Value range | |
| Applicable scope | |
| Involved in serialization? | Yes. In remote execution and distributed execution, this variable is involved in serialization. |
| Effective only after restart? | No |
When the transaction_read_only variable is set to True, DML statements cannot be executed.