sql_mode specifies the SQL mode. Database actions vary greatly with the SQL modes.
Attribute |
Description |
|---|---|
| Type | Varchar |
| Default value | STRICT_ALL_TABLES,NO_ZERO_IN_DATE |
| Value range | Any combination of the following values is supported:
|
| Applicable scope |
The following example shows how to set the SQL mode of the current session to STRICT_ALL_TABLES,STRICT_TRANS_TABLES.
obclient>SET SESSION sql_mode = 'STRICT_ALL_TABLES,STRICT_TRANS_TABLES';
