自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

查看三種MySQL字符集的方法

數(shù)據(jù)庫(kù) MySQL
查看MySQL字符集的命令是我們經(jīng)常會(huì)使用到的,下文就介紹了其中的三種查看MySQL字符集的命令,供您參考學(xué)習(xí)。

MySQL字符集多種多樣,下面為您列舉了其中三種最常見(jiàn)的MySQL字符集查看方法,該方法供您參考,希望對(duì)您學(xué)習(xí)MySQL數(shù)據(jù)庫(kù)能有所啟迪。

一、查看MySQL數(shù)據(jù)庫(kù)服務(wù)器和數(shù)據(jù)庫(kù)MySQL字符集。

  1. mysql> show variables like '%char%';  
  2. +--------------------------+-------------------------------------+------  
  3. | Variable_name            | Value                               |......  
  4. +--------------------------+-------------------------------------+------  
  5. | character_set_client     | utf8                                |......   -- 客戶端字符集  
  6. | character_set_connection | utf8                                |......  
  7. | character_set_database   | utf8                                |......   -- 數(shù)據(jù)庫(kù)字符集  
  8. | character_set_filesystem | binary                              |......  
  9. | character_set_results    | utf8                                |......  
  10. | character_set_server     | utf8                                |......   -- 服務(wù)器字符集  
  11. | character_set_system     | utf8                                |......  
  12. | character_sets_dir       | D:\MySQL Server 5.0\share\charsets\ |......  
  13. +--------------------------+-------------------------------------+------ 

 

二、查看MySQL數(shù)據(jù)表(table)的MySQL字符集。

  1. mysql> show table status from sqlstudy_db like '%countries%';  
  2. +-----------+--------+---------+------------+------+-----------------+------  
  3. | Name      | Engine | Version | Row_format | Rows | Collation       |......  
  4. +-----------+--------+---------+------------+------+-----------------+------  
  5. | countries | InnoDB |      10 | Compact    |   11 | utf8_general_ci |......  
  6. +-----------+--------+---------+------------+------+-----------------+------ 

三、查看MySQL數(shù)據(jù)列(column)的MySQL字符集。

  1. mysql> show full columns from countries;  
  2. +----------------------+-------------+-----------------+--------  
  3. | Field                | Type        | Collation       | .......  
  4. +----------------------+-------------+-----------------+--------  
  5. | countries_id         | int(11)     | NULL            | .......  
  6. | countries_name       | varchar(64) | utf8_general_ci | .......  
  7. | countries_iso_code_2 | char(2)     | utf8_general_ci | .......  
  8. | countries_iso_code_3 | char(3)     | utf8_general_ci | .......  
  9. | address_format_id    | int(11)     | NULL            | .......  
  10. +----------------------+-------------+-----------------+--------  
  11.  

 

 

 

【編輯推薦】

修改mysql默認(rèn)字符集的方法

MySQL外鍵在數(shù)據(jù)庫(kù)中的作用

MySQL定義外鍵的方法

MySQL外鍵的相關(guān)語(yǔ)法

帶參數(shù)的MySql存儲(chǔ)過(guò)程

責(zé)任編輯:段燃 來(lái)源: 互聯(lián)網(wǎng)
相關(guān)推薦

2010-10-09 10:57:22

MySQL默認(rèn)字符集

2010-04-30 10:16:22

Oracle字符集

2010-10-09 11:31:25

MySQL字符集

2010-10-09 11:12:32

mysql默認(rèn)字符集

2010-10-14 11:52:38

MySQL字符集

2010-10-09 10:35:46

MySQL字符集

2011-03-16 16:40:00

DB2數(shù)據(jù)庫(kù)字符集設(shè)置

2020-12-16 06:34:16

MySQL字符集服務(wù)器

2021-03-23 18:21:30

MySQL數(shù)據(jù)庫(kù)字符集

2010-06-07 16:09:58

MySQL字符集

2011-04-07 15:58:59

MySQL字符集亂碼

2010-05-06 14:40:59

Oracle字符集

2010-04-13 12:56:16

Oracle字符集

2009-02-24 10:51:30

2010-06-13 16:17:26

MySQL改變字符集

2011-05-16 13:15:55

MySQL存儲(chǔ)字符集

2010-06-02 17:59:19

MySQL字符集

2010-11-12 14:00:24

Transact-SQ

2015-10-08 15:49:00

版本號(hào)方法Windows 10

2010-11-01 15:44:45

DB2字符集
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)