Ikhtisar
Keunggulan
Kasus Penggunaan
Database Architecture
Kebijakan Isolasi Sumber Daya
Database Instance
Ketersediaan Tinggi (Beberapa AZ)
Wilayah dan AZ
SET [SESSION | GLOBAL] sql_mode='modes' statement. You can also use SELECT @@sql_mode to query the current SQL Mode.Name | Description |
PIPES_AS_CONCAT | Treat || as the string concatenation operator (+) (same as CONCAT()), rather than OR. |
ANSI_QUOTES | Treat " as an identifier. If ANSI_QUOTES is enabled, only those within single quotation marks will be regarded as String Literals, and double quotes are treated as identifiers. Therefore, double quotes cannot be used to quote strings. |
IGNORE_SPACE | If this mode is enabled, the system ignores spaces. For example, "user" and "user " are the same. |
ONLY_FULL_GROUP_BY | If a column that is not processed by an aggregate function or not included in GROUP BY appears in SELECT, HAVING, or ORDER BY, this SQL is invalid. |
NO_UNSIGNED_SUBTRACTION | In a subtraction operation, if an operand has no sign, do not mark the result as UNSIGNED (supported). |
NO_BACKSLASH_ESCAPES | If this mode is enabled, the backslash symbol (\\) only represents itself. |
STRICT_TRANS_TABLES | Enable strict mode for the transaction storage engine and roll back the entire statement after inserting an illegal value. |
STRICT_ALL_TABLES | For transactional tables, roll back the entire transaction statement after writing an illegal value. |
NO_ZERO_IN_DATE | In strict mode, dates with 0 in the month or day part are not accepted. If the IGNORE option is used, we insert "0000-00-00" for similar dates. In non-strict mode, such dates can be accepted, but a warning will be generated. |
NO_ZERO_DATE | In strict mode, do not treat "0000-00-00" as a valid date. You can still insert 0 dates with the IGNORE option. In non-strict mode, this date can be accepted, but a warning will be generated. |
ALLOW_INVALID_DATES | Do not check the legitimacy of all dates. Only check whether the month value is between 1 and 12 and whether the date value is between 1 and 31. This only applies to DATE and DATETIME columns. All legitimacy of TIMESTAMP columns needs to be checked. |
ERROR_FOR_DIVISION_BY_ZERO | Enable this mode. During the INSERT or UPDATE process, when the dividend is 0, the system generates an error. If this mode is not enabled, when the dividend is 0, the system generates a warning and replaces it with NULL. |
REAL_AS_FLOAT | Treat REAL as a synonym for FLOAT rather than a synonym for DOUBLE. |
NO_DIR_IN_CREATE | When a table is created, ignore all INDEX DIRECTORY and DATA DIRECTORY instructions. This option is only useful for replication servers. |
NO_AUTO_CREATE_USER | Prevent GRANT from automatically creating users, except when specifying a password (but this has no actual effect in an analysis engine). |
NO_ENGINE_SUBSTITUTION | If the required storage engine is disabled or not compiled, it can prevent automatic replacement of the storage engine (but this has no actual effect in an analysis engine). |
Character Set | Description | Supported Collation | Maximum Size |
utf8 | UTF-8 Unicode | utf8_bin | 3 |
utf8mb4 | UTF-8 Unicode | utf8mb4_bin | 4 |
SELECT...GROUP BY expr in an analysis engine are consistent with MySQL 8.0. By default, there is no sorting, which is different from MySQL 5.7 where sorting is enabled by default. Therefore, this logic applies to analysis engines built on both MySQL 5.7 and MySQL 8.0.Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan