mysql 5 的 charset
除了 server,database,table,column可以特定的指定字符集及校對排序規則外,還有connect,client,不過connect,client我就沒去太看他,保持client和server的相同才可簡化問題。
[@more@]10.3.1. Server Character Set and Collation
The current server character set and collation are available as the values of the character_set_server and collation_server system variables. These variables can be changed at runtime.
10.3.2. Database Character Set and Collation
The database character set and collation are used as default values if the table character set and collation are not specified in CREATE TABLE statements. They have no other purpose.
The character set and collation for the default database are available as the values of the character_set_database and collation_database system variables. The server sets these variables whenever the default database changes. If there is no default database, the variables have the same value as the corresponding server-level variables, character_set_server and collation_server.
10.3.3. Table Character Set and Collation
MySQL chooses the table character set and collation thus:
If both CHARACTER SET X and COLLATE Y were specified, then character set X and collation Y.
If CHARACTER SET X was specified without COLLATE, then character set X and its default collation.
Otherwise, the database character set and collation.
The table character set and collation are used as default values if the column character set and collation are not specified in individual column definitions. The table character set and collation are MySQL extensions; there are no such things in standard SQL.
10.3.4. Column Character Set and Collation
MySQL chooses the column character set and collation thus:
If both CHARACTER SET X and COLLATE Y were specified, then character set X and collation Y.
If CHARACTER SET X was specified without COLLATE, then character set X and its default collation.
Otherwise, the table character set and collation.
The CHARACTER SET and COLLATE clauses are standard SQL.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/82392/viewspace-997059/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- django 中 mysql 的 charset 配置DjangoMySql
- 解決 Lumen 中 client charset is not supportedclient
- MySQL資料庫5:Go與MySQL的互動MySql資料庫Go
- Python 操作 MySQL 的5種方式PythonMySql
- 說說如果meta標籤沒有寫charset屬性,將會如何?
- sql mysql variable autocommit (5)MySqlMIT
- 5_MySQL 表的欄位約束MySql
- MySQL最佳化的5個維度MySql
- MySQL效能優化的5個維度MySql優化
- Python操作MySQL資料庫的5種方式PythonMySql資料庫
- Debian安裝Apache2+MySQL5+PHP5ApacheMySqlPHP
- 5-5配置Mysql複製 基於日誌點的複製MySql
- MySQL 入門(5):複製MySql
- MySQL基礎知識(5)MySql
- MySQL運維5-Mycat配置MySql運維
- Oracle和MySQL md5加密OracleMySql加密
- 5.MySQL 基礎結構MySql
- MySQL查詢最佳化的5個實用技巧MySql
- 安全快速修改Mysql資料庫名的5種方法MySql資料庫
- MySQL MHA部署 Part 5 MHA部署指南MySql
- MySQL全面瓦解5:資料操作-DMLMySql
- MT7688學習筆記(5)——OpenWrt下MySQL的使用筆記MySql
- win10同時安裝Mysql5和mysql8Win10MySql
- MySQL深入研究--學習總結(5)MySql
- MySQL 海量資料的 5 種分頁方法和優化技巧MySql優化
- 5. MySQL Galera Cluster全解析 Part 5 Galera Cluster軟體安裝MySql
- MySQL 8下忘密碼後重置密碼的辦法(MySQL5老方法不靈了)MySql密碼
- MySQL調優篇 | SQL調優實戰(5)MySql
- TP5 在field中使用mysql函式MySql函式
- mysql查詢語句5:連線查詢MySql
- MySQL 5 不允許TEXT資料型別的列有預設值的問題!MySql資料型別
- MySQL資料庫的索引原理、與慢SQL優化的5大原則MySql資料庫索引優化
- mysql5 7配置不生效解決記錄MySql
- 【MySQL(5)| 五分鐘搞清楚 MVCC 機制】MySqlMVC
- Mysql基礎+select5種子句 + 子查詢MySql
- 【MySQL】MySQL中的鎖MySql
- MySQL如何建立一個好索引?建立索引的5條建議【宇哥帶你玩轉MySQL 索引篇(三)】MySql索引
- 連線數從異常到 300 到 5(RDS MySQL 的一個大坑•後記)MySql