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
- 字符集和字元編碼(Charset & Encoding)字元Encoding
- CSS檔案開頭到底宣告@charset”utf-8″CSS
- [Mysql] 5.Mysql 建立表MySql
- CentOS5+mysql+php的配置CentOSMySqlPHP
- MySQL資料庫5:Go與MySQL的互動MySql資料庫Go
- Python 操作 MySQL 的5種方式PythonMySql
- 我加入 MySQL 的 5 年時間MySql
- MySQL系列-- 5. MySQL高階特性MySql
- 資料庫字符集修改函式function nls_charset_id_name資料庫函式Function
- 網頁編碼大全CodePage CharSet中英文顯示名稱網頁
- 5_MySQL 表的欄位約束MySql
- MySQL效能優化的5個維度MySql優化
- MySQL最佳化的5個維度MySql
- mysql 4.0 iso字型轉到mysql5MySql
- 配置Apache2.2+PHP5+CakePHP1.2+MySQL5ApachePHPMySql
- MySQL 入門(5):複製MySql
- sql mysql variable autocommit (5)MySqlMIT
- (5)mysql 常用儲存引擎MySql儲存引擎
- MySQL5:效能優化MySql優化
- 5-5配置Mysql複製 基於日誌點的複製MySql
- Apache+PHP5+MySQL4(5)+PHPMyAdmin 的簡易安裝配置ApachePHPMySql
- Debian安裝Apache2+MySQL5+PHP5ApacheMySqlPHP
- mysql innodb的行鎖(5) --next-Key 鎖MySql
- Mysql中myisam和innodb的區別,至少5點MySql
- php5模組pdo、pdo_mysql、mysqli的新增PHPMySql
- MYSQL5的master slave資料同步配置(轉)MySqlAST
- Python操作MySQL資料庫的5種方式PythonMySql資料庫
- Oracle和MySQL md5加密OracleMySql加密
- 5.MySQL 基礎結構MySql
- MySQL運維5-Mycat配置MySql運維
- [MYSQL-5]排序檢索資料MySql排序
- Nginx PHP-FPM and MySQL on CentOS 5NginxPHPMySqlCentOS
- 5mysql資料型別MySql資料型別
- MySQL5入門知識MySql
- MySQL中文參考手冊5(安裝MySQL下) (轉)MySql
- 安全快速修改Mysql資料庫名的5種方法MySql資料庫