国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

MySQL 8.0 Reference Manual(讀書(shū)筆記35節(jié)-- 字符編碼(2))

這篇具有很好參考價(jià)值的文章主要介紹了MySQL 8.0 Reference Manual(讀書(shū)筆記35節(jié)-- 字符編碼(2))。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

1.Character String Literal【?l?t?r?l 字面意義的;缺乏想象力的;完全按原文的;】 Character Set and Collation

Every character string literal has a character set and a collation.

For the simple statement SELECT 'string', the string has the connection default character set and collation defined by the character_set_connection and collation_connection system variables.

A character string literal may have an optional character set introducer and COLLATE clause, to designate【?dez?ɡne?t 指定;命名;選定,指派,委任(某人任某職);指明;標(biāo)示;標(biāo)明;】 it as a string that uses a particular character set and collation:

[_charset_name]'string' [COLLATE collation_name]

The _charset_name expression is formally called an introducer【??ntr??dus?r 添加劑;插管器;導(dǎo)引器;輸入(提出)者;創(chuàng)始(介紹)人;】. It tells the parser【?pɑrs?r 解析器;分析器;解析;語(yǔ)法分析器;剖析器;】, “the string that follows uses character set charset_name.” An introducer does not change the string to the introducer character set like CONVERT() would do. It does not change the string value, although padding【?p?d?? 襯墊;襯料;廢話(huà);湊篇幅的文字;贅語(yǔ);】 may occur.

舉例

SELECT 'abc';
SELECT _latin1'abc';
SELECT _binary'abc';
SELECT _utf8mb4'abc' COLLATE utf8mb4_danish_ci;

Character set introducers and the COLLATE clause are implemented【??mpl?ment?d 實(shí)施;執(zhí)行;貫徹;使生效;】 according to standard SQL specifications.

MySQL determines the character set and collation of a character string literal in the following manner: ---都差不多

? If both _charset_name and COLLATE collation_name are specified, character set charset_name and collation collation_name are used. collation_name must be a permitted collation for charset_name.

? If _charset_name is specified but COLLATE is not specified, character set charset_name and its default collation are used. To see the default collation for each character set, use the SHOW CHARACTER SET statement or query the INFORMATION_SCHEMA CHARACTER_SETS table.

? If _charset_name is not specified but COLLATE collation_name is specified, the connection default character set given by the character_set_connection system variable and collation collation_name are used. collation_name must be a permitted collation for the connection default character set.

? Otherwise (neither _charset_name nor COLLATE collation_name is specified), the connection default character set and collation given by the character_set_connection and collation_connection system variables are used.

An introducer indicates【??nd?ke?ts 表明;顯示;暗示;示意;象征;間接提及;】 the character set for the following string, but does not change how the parser performs escape【??ske?p 逃跑;(從不愉快或危險(xiǎn)處境中)逃脫;逃避;逃脫,幸免于難;擺脫;(從監(jiān)禁或管制中)逃走;逃出;避免(不愉快或危險(xiǎn)的事物);漏出;被忘掉;(不自覺(jué)地)由…發(fā)出;】 processing within the string. Escapes are always interpreted【?n?t??rpr?t?d 詮釋;說(shuō)明;把…理解為;領(lǐng)會(huì);口譯;】 by the parser according to the character set given by character_set_connection.

The following examples show that escape processing occurs using character_set_connection even in the presence of an introducer. The examples use SET NAMES (which changes character_set_connection),and display the resulting strings using the HEX() function so that the exact string contents can be seen.

Example 1:

mysql> SET NAMES latin1;
mysql> SELECT HEX('à\n'), HEX(_sjis'à\n');
+------------+-----------------+
| HEX('à\n') | HEX(_sjis'à\n') |
+------------+-----------------+
| E00A       | E00A            |
+------------+-----------------+

Here, à (hexadecimal value E0) is followed by \n, the escape sequence for newline. The escape sequence is interpreted using the character_set_connection value of latin1 to produce a literal newline (hexadecimal value 0A). This happens even for the second string. That is, the _sjis introducer does not affect the parser's escape processing.

Example 2:

mysql> SET NAMES sjis;
mysql> SELECT HEX('à\n'), HEX(_latin1'à\n');
+------------+-------------------+
| HEX('à\n') | HEX(_latin1'à\n') |
+------------+-------------------+
| E05C6E     | E05C6E            |
+------------+-------------------+

Here, character_set_connection is sjis, a character set in which the sequence of à followed by \ (hexadecimal values 05 and 5C) is a valid multibyte character. Hence, the first two bytes of the string are interpreted as a single sjis character, and the \ is not interpreted as an escape character. The following n (hexadecimal value 6E) is not interpreted as part of an escape sequence. This is true even for the second string; the _latin1 introducer does not affect escape processing.

2.The National【?n??n?l 國(guó)家的】 Character Set

Standard SQL defines NCHAR or NATIONAL CHAR as a way to indicate that a CHAR column should use some predefined character set. MySQL uses utf8 as this predefined character set. For example, these data type declarations are equivalent【??kw?v?l?nt (價(jià)值、數(shù)量、意義、重要性等)相同的;相等的;】:

CHAR(10) CHARACTER SET utf8
NATIONAL CHARACTER(10)
NCHAR(10)

As are these:

VARCHAR(10) CHARACTER SET utf8
NATIONAL VARCHAR(10)
NVARCHAR(10)
NCHAR VARCHAR(10)
NATIONAL CHARACTER VARYING(10)
NATIONAL CHAR VARYING(10)

You can use N'literal' (or n'literal') to create a string in the national character set. These statements are equivalent:

SELECT N'some text';
SELECT n'some text';
SELECT _utf8'some text';

MySQL 8.0 interprets the national character set as utf8mb3, which is now deprecated. Thus, using NATIONAL CHARACTER or one of its synonyms to define the character set for a database, table, or column raises a warning similar to this one:

NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be
replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER
SET UTF8MB4 in order to be unambiguous. 

3.Connection Character Sets and Collations

A “connection” is what a client program makes when it connects to the server, to begin a session within which it interacts【?nt?r??kts 相互作用;交流;合作;相互影響;溝通;】 with the server. The client sends SQL statements, such as queries, over the session connection. The server sends responses, such as result sets or error messages, over the connection back to the client.

3.1?Connection Character Set and Collation System Variables

Several【?sevr?l 不同的,各種各樣的;大量的,許多的;各自的,分別的;單個(gè)的;〈律〉非連帶(負(fù)擔(dān))的,個(gè)別的;專(zhuān)有的,獨(dú)占的;】 character set and collation system variables relate to a client's interaction with the server. Some of these have been mentioned in earlier sections: ---有幾個(gè)系統(tǒng)變量會(huì)影響到客戶(hù)端和服務(wù)器端的交互

? The character_set_server and collation_server system variables indicate the server character set and collation.

? The character_set_database and collation_database system variables indicate the character set and collation of the default database.

Additional【??d???nl 附加的;額外的;外加的;】 character set and collation system variables are involved【?n?vɑ?lvd 參與;卷入的;關(guān)注;有關(guān)聯(lián);關(guān)系密切;】 in handling traffic for the connection between a client and the server. Every client has session-specific connection-related character set and?collation system variables. These session system variable values are initialized at connect time, but can be changed within the session.

Several questions about character set and collation handling for client connections can be answered in terms of system variables:

? What character set are statements in when they leave the client?

The server takes the character_set_client system variable to be the character set in which statements are sent by the client.

? What character set should the server translate【tr?nz?le?t 翻譯;被翻譯;譯;(以某種方式)理解;被譯成;(使)轉(zhuǎn)變,變?yōu)?】 statements to after receiving them?

To determine this, the server uses the character_set_connection and collation_connection system variables:

?? The server converts statements sent by the client from character_set_client to character_set_connection. Exception: For string literals that have an introducer such as _utf8mb4 or _latin2, the introducer determines the character set.

? collation_connection is important for comparisons【k?m?p?r?s?nz】 of literal strings. For comparisons of strings with column values, collation_connection does not matter because columns have their own collation, which has a higher collation precedence【?pres?d?ns 優(yōu)先;優(yōu)先權(quán);】.

? What character set should the server translate query results to before shipping them back to the client?

The character_set_results system variable indicates the character set in which the server returns query results to the client. This includes result data such as column values, result metadata such as column names, and error messages.

To tell the server to perform no conversion of result sets or error messages, set character_set_results to NULL or binary:

SET character_set_results = NULL;
SET character_set_results = binary;

To see the values of the character set and collation system variables that apply to the current session, use this statement:

SELECT * FROM performance_schema.session_variables
WHERE VARIABLE_NAME IN (
 'character_set_client', 'character_set_connection',
 'character_set_results', 'collation_connection'
) ORDER BY VARIABLE_NAME;

The following simpler statements also display the connection variables, but include other related variables as well. They can be useful to see all character set and collation system variables:

SHOW SESSION VARIABLES LIKE 'character\_set\_%';
SHOW SESSION VARIABLES LIKE 'collation\_%';

Clients can fine-tune the settings for these variables, or depend on the defaults (in which case, you can skip the rest of this section). If you do not use the defaults, you must change the character settings for each connection to the server.

3.2?Impermissible【??mp??r?m?s?bl 不允許的;不許可的;】 Client Character Sets

The character_set_client system variable cannot be set to certain character sets:

ucs2
utf16
utf16le
utf32

否則,報(bào)錯(cuò)

mysql> SET character_set_client = 'ucs2';
ERROR 1231 (42000): Variable 'character_set_client'
can't be set to the value of 'ucs2'

The same error occurs if any of those character sets are used in the following contexts, all of which result in an attempt to set character_set_client to the named character set:

? The --default-character-set=charset_name command option used by MySQL client programs such as mysql and mysqladmin.

? The SET NAMES 'charset_name' statement.

? The SET CHARACTER SET 'charset_name' statement.

3.3?Client Program Connection Character Set Configuration

When a client connects to the server, it indicates which character set it wants to use for communication with the server. (Actually, the client indicates the default collation for that character set, from which the server can determine the character set.) The server uses this information to set the character_set_client, character_set_results, character_set_connection system variables to the character set, and collation_connection to the character set default collation. In effect, the server performs the equivalent【??kw?v?l?nt (價(jià)值、數(shù)量、意義、重要性等)相同的;相等的;】 of a SET NAMES operation.

If the server does not support the requested character set or collation, it falls back to using the server character set and collation to configure the connection.

The mysql, mysqladmin, mysqlcheck, mysqlimport, and mysqlshow client programs determine the default character set to use as follows:

? In the absence【??bs?ns 缺席;缺乏;不存在;不在;】 of other information, each client uses the compiled-in default character set, usually utf8mb4.

? Each client can autodetect【自動(dòng)檢測(cè);】 which character set to use based on the operating system setting, such as the value of the LANG or LC_ALL locale environment variable on Unix systems or the code page setting on Windows systems. For systems on which the locale【lo??k?l 場(chǎng)所;現(xiàn)場(chǎng);發(fā)生地點(diǎn);】 is available from the OS, the client uses it to set the default character set rather than using the compiled-in default. For example, setting LANG to ru_RU.KOI8-R causes the koi8r character set to be used. Thus, users can configure the locale in their environment for use by MySQL clients.

The OS character set is mapped to the closest MySQL character set if there is no exact match. If the client does not support the matching character set, it uses the compiled-in default. For example, utf8?and utf-8 map to utf8mb4, and ucs2 is not supported as a connection character set, so it maps to the compiled-in default.

C applications can use character set autodetection based on the OS setting by invoking mysql_options() as follows before connecting to the server:

mysql_options(mysql,
 MYSQL_SET_CHARSET_NAME,
 MYSQL_AUTODETECT_CHARSET_NAME);

? Each client supports a --default-character-set option, which enables users to specify the character set explicitly【?k?spl?s?tli 明確地;明白地;】 to override whatever default the client otherwise determines.

3.4?SQL Statements for Connection Character Set Configuration

After a connection has been established, clients can change the character set and collation system variables for the current session. These variables can be changed individually【??nd??v?d?u?li 單獨(dú)地;分別地;各別地;】 using SET statements, but two more convenient statements affect the connection-related character set system variables as a group:

? SET NAMES 'charset_name' [COLLATE 'collation_name']

SET NAMES indicates what character set the client uses to send SQL statements to the server. Thus, SET NAMES 'cp1251' tells the server, “future incoming messages from this client are in character set cp1251.” It also specifies the character set that the server should use for sending results back to the client. (For example, it indicates what character set to use for column values if you use a SELECT statement that produces a result set.)

A SET NAMES 'charset_name' statement is equivalent to these three statements:--效果是一樣的

SET character_set_client = charset_name;
SET character_set_results = charset_name;
SET character_set_connection = charset_name;

Setting character_set_connection to charset_name also implicitly【?m?pl?s?tli 含蓄地;無(wú)保留地;暗中地;不明顯地;無(wú)疑問(wèn)地;】 sets collation_connection to the default collation for charset_name. It is unnecessary to set that collation explicitly. To specify a particular collation to use for collation_connection, add a COLLATE clause:

SET NAMES 'charset_name' COLLATE 'collation_name'

? SET CHARACTER SET 'charset_name'

SET CHARACTER SET is similar to SET NAMES but sets character_set_connection and collation_connection to character_set_database and collation_database (which, as mentioned previously, indicate the character set and collation of the default database).

A SET CHARACTER SET charset_name statement is equivalent to these three statements:

SET character_set_client = charset_name;
SET character_set_results = charset_name;
SET collation_connection = @@collation_database;

Setting collation_connection also implicitly sets character_set_connection to the character set associated with the collation (equivalent to executing SET character_set_connection = @@character_set_database). It is unnecessary to set character_set_connection explicitly.

3.5?Connection Character Set Error Handling

Attempts to use an inappropriate【??n??pro?pri?t 不適當(dāng)?shù)?不恰當(dāng)?shù)?不合適的;】 connection character set or collation can produce an error, or cause the server to fall back to its default character set and collation for a given connection. This section describes problems that can occur when configuring the connection character set. These problems can occur when establishing a connection or when changing the character set within an established connection.

3.5.1?Connect-Time Error Handling

Some character sets cannot be used as the client character set;If you specify a character set that is valid but not permitted as a client character set, the server returns an error:

$> mysql --default-character-set=ucs2
ERROR 1231 (42000): Variable 'character_set_client' can't be set to
the value of 'ucs2'

If you specify a character set that the client does not recognize, it produces an error:

$> mysql --default-character-set=bogus
mysql: Character set 'bogus' is not a compiled character set and is
not specified in the '/usr/local/mysql/share/charsets/Index.xml' file
ERROR 2019 (HY000): Can't initialize character set bogus
(path: /usr/local/mysql/share/charsets/)

If you specify a character set that the client recognizes but the server does not, the server falls back to its default character set and collation. Suppose that the server is configured to use latin1 and latin1_swedish_ci as its defaults, and that it does not recognize gb18030 as a valid character set. A client that specifies --default-character-set=gb18030 is able to connect to the server, but the resulting character set is not what the client wants:

mysql> SHOW SESSION VARIABLES LIKE 'character\_set\_%';
+--------------------------+--------+
| Variable_name            | Value  |
+--------------------------+--------+
| character_set_client     | latin1 |
| character_set_connection | latin1 |
...
| character_set_results    | latin1 |
...
+--------------------------+--------+
mysql> SHOW SESSION VARIABLES LIKE 'collation_connection';
+----------------------+-------------------+
| Variable_name        | Value             |
+----------------------+-------------------+
| collation_connection | latin1_swedish_ci |
+----------------------+-------------------+

You can see that the connection system variables have been set to reflect a character set and collation of latin1 and latin1_swedish_ci. This occurs because the server cannot satisfy the client character set request and falls back to its defaults.

In this case, the client cannot use the character set that it wants because the server does not support it. The client must either be willing to use a different character set, or connect to a different server that supports the desired character set.

The same problem occurs in a more subtle【?s?tl 微妙的;巧妙的;狡猾的;敏銳的;不易察覺(jué)的;不明顯的;機(jī)智的;機(jī)巧的;】 context: When the client tells the server to use a character set that the server recognizes, but the default collation for that character set on the client side is not known on the server side. This occurs, for example, when a MySQL 8.0 client wants to connect to a MySQL 5.7 server using utf8mb4 as the client character set. A client that specifies --default-character-set=utf8mb4 is able to connect to the server. However, as in the previous example, the server falls back to its default character set and collation, not what the client requested:

mysql> SHOW SESSION VARIABLES LIKE 'character\_set\_%';
+--------------------------+--------+
| Variable_name            | Value  |
+--------------------------+--------+
| character_set_client     | latin1 |
| character_set_connection | latin1 |
...
| character_set_results    | latin1 |
...
+--------------------------+--------+
mysql> SHOW SESSION VARIABLES LIKE 'collation_connection';
+----------------------+-------------------+
| Variable_name        | Value             |
+----------------------+-------------------+
| collation_connection | latin1_swedish_ci |
+----------------------+-------------------+

Why does this occur? After all, utf8mb4 is known to the 8.0 client and the 5.7 server, so both of them recognize it. To understand this behavior【b?'he?vj?r 行為;性能;表現(xiàn);(生物的)習(xí)性;】, it is necessary to understand that when the client tells the server?which character set it wants to use, it really tells the server the default collation for that character set. Therefore, the aforementioned【??f??rmen??nd 上述的;前面提到的;】 behavior occurs due to a combination of factors:

? The default collation for utf8mb4 differs between MySQL 5.7 and 8.0 (utf8mb4_general_ci for 5.7, utf8mb4_0900_ai_ci for 8.0).

? When the 8.0 client requests a character set of utf8mb4, what it sends to the server is the default 8.0 utf8mb4 collation; that is, the utf8mb4_0900_ai_ci.

? utf8mb4_0900_ai_ci is implemented【??mpl?ment?d 實(shí)施;執(zhí)行;貫徹;使生效;】 only as of MySQL 8.0, so the 5.7 server does not recognize it.

? Because the 5.7 server does not recognize utf8mb4_0900_ai_ci, it cannot satisfy the client character set request, and falls back to its default character set and collation (latin1 and latin1_swedish_ci).

In this case, the client can still use utf8mb4 by issuing a SET NAMES 'utf8mb4' statement after connecting. The resulting collation is the 5.7 default utf8mb4 collation; that is, utf8mb4_general_ci. If the client additionally wants a collation of utf8mb4_0900_ai_ci, it cannot achieve that because the server does not recognize that collation. The client must either be willing to use a different utf8mb4 collation, or connect to a server from MySQL 8.0 or higher.

3.5.2?Runtime Error Handling

Within an established connection, the client can request a change of connection character set and collation with SET NAMES or SET CHARACTER SET.

Some character sets cannot be used as the client character set;If you specify a character set that is valid but not permitted as a client character set, the server returns an error.

If the server does not recognize the character set (or the collation), it produces an error.

補(bǔ)充:

A client that wants to verify whether its requested character set was honored by the server can execute the following statement after connecting and checking that the result is the expected character set:

SELECT @@character_set_client;

?文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-849984.html

到了這里,關(guān)于MySQL 8.0 Reference Manual(讀書(shū)筆記35節(jié)-- 字符編碼(2))的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶(hù)投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • MySQL 8.0 Reference Manual(讀書(shū)筆記90節(jié)--Replication)

    1. The following options also have an impact on the source: ? For the greatest possible durability and consistency in a replication setup using InnoDB with transactions, you should use ?innodb_flush_log_at_trx_commit=1 and sync_binlog=1 in the source\\\'s my.cnf file. ? Ensure that the skip_networking system variable is not enabled on the source. If networ

    2024年04月26日
    瀏覽(24)
  • MySQL 8.0 Reference Manual(讀書(shū)筆記68節(jié)--Deadlocks)

    A deadlock is a situation where different transactions are unable to proceed because each holds a lock that the other needs. Because both transactions are waiting for a resource to become available, neither ever release the locks it holds. To reduce the possibility of deadlocks, use transactions rather than LOCK TABLES statements; keep transactions that inse

    2024年03月23日
    瀏覽(26)
  • MySQL 8.0 Reference Manual(讀書(shū)筆記19節(jié)-- 日期與計(jì)算)

    為什么設(shè)計(jì)的時(shí)候,存放的是出生日期而不是年齡呢?這個(gè)問(wèn)題簡(jiǎn)單,細(xì)想很有意思,也包含著智慧,來(lái)自生產(chǎn)生活的思考。下面的解釋很到位。 How about age? That might be of interest, but it is not a good thing to store in a database. Age changes as time passes, which means you\\\'d have to update your records

    2024年04月11日
    瀏覽(27)
  • MySQL 8.0 Reference Manual(讀書(shū)筆記64節(jié)--InnoDBTransaction Model)

    The InnoDB transaction model aims to combine the best properties【?prɑp?rtiz 財(cái)產(chǎn); 特性; 房地產(chǎn); 不動(dòng)產(chǎn); 財(cái)物; 莊園; 所有物; 房屋及院落; 】 of a multi-versioning database with traditional two-phase locking. InnoDB performs locking at the row level and runs queries as nonlocking consistent reads by default, in the style of Oracle. T

    2024年04月22日
    瀏覽(25)
  • MySQL 8.0 Reference Manual(讀書(shū)筆記65節(jié)--InnoDBLocks Set)

    A locking read, an UPDATE, or a DELETE generally set record locks on every index record that is scanned in the processing of an SQL statement. It does not matter whether there are WHERE conditions in the statement that would exclude the row. InnoDB does not remember the exact【?ɡ?z?kt 準(zhǔn)確的; 精確的; 嚴(yán)格的; 精密的; 嚴(yán)謹(jǐn)?shù)? 嚴(yán)密的; 一絲

    2024年04月22日
    瀏覽(26)
  • MySQL 8.0 Reference Manual(讀書(shū)筆記67節(jié)--Phantom Rows)

    The so-called phantom problem occurs within a transaction when the same query produces different sets of rows at different times. For example, if a SELECT is executed twice, but returns a row the second time that was not returned the first time, the row is a “phantom” row. Suppose that there is an index on the id column of the child table and that you wa

    2024年03月23日
    瀏覽(21)
  • MySQL 8.0 Reference Manual(讀書(shū)筆記63節(jié)--InnoDB Locking)

    MySQL 8.0 Reference Manual(讀書(shū)筆記63節(jié)--InnoDB Locking)

    To implement a large-scale, busy, or highly reliable database application, to port substantial【s?b?st?n?l】 code from a different database system, or to tune MySQL performance, it is important to understand InnoDB locking and the InnoDB transaction model. InnoDB implements【??mpl?ments 實(shí)施; 執(zhí)行; 貫徹; 使生效; 】 standard row-level lock

    2024年04月22日
    瀏覽(27)
  • MySQL 8.0 Reference Manual(讀書(shū)筆記40節(jié)-- Data Types(2))

    MySQL 8.0 Reference Manual(讀書(shū)筆記40節(jié)-- Data Types(2))

    The string data types are CHAR, VARCHAR, BINARY, VARBINARY, BLOB, TEXT, ENUM, and SET. In some cases, MySQL may change a string column to a type different from that given in a CREATE TABLE or ALTER TABLE statement.? For definitions of character string columns (CHAR, VARCHAR, and the TEXT types), MySQL interprets【?n?t??rpr?ts 詮釋; 說(shuō)明; 把…理解

    2024年04月17日
    瀏覽(49)
  • MySQL 8.0 Reference Manual(讀書(shū)筆記39節(jié)-- Data Types(1))

    Data type descriptions use these conventions: ? For integer types, M indicates the maximum display width. For floating-point and fixed-point types, M is the total number of digits that can be stored (the precision). For string types, M is the maximum length. The maximum permissible value of M depends on the data type. ? D applies to floating-point and fi

    2024年04月16日
    瀏覽(24)
  • MySQL 8.0 Reference Manual(讀書(shū)筆記41節(jié)-- Data Types(3))

    MySQL 8.0 Reference Manual(讀書(shū)筆記41節(jié)-- Data Types(3))

    Data type specifications can have explicit【?k?spl?s?t 明確的; 詳述的; 直言的, 坦率的; 一目了然的; 】 or implicit【?m?pl?s?t 含蓄的; 完全的; 內(nèi)含的; 無(wú)疑問(wèn)的; 不直接言明的; 成為一部分的; 】 default values. A DEFAULT value clause in a data type specification explicitly indicates a default value for a colum

    2024年04月17日
    瀏覽(31)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包