<legend id='mzRYp'><style id='mzRYp'><dir id='mzRYp'><q id='mzRYp'></q></dir></style></legend>

    1. <small id='mzRYp'></small><noframes id='mzRYp'>

        <bdo id='mzRYp'></bdo><ul id='mzRYp'></ul>
      <tfoot id='mzRYp'></tfoot>
      <i id='mzRYp'><tr id='mzRYp'><dt id='mzRYp'><q id='mzRYp'><span id='mzRYp'><b id='mzRYp'><form id='mzRYp'><ins id='mzRYp'></ins><ul id='mzRYp'></ul><sub id='mzRYp'></sub></form><legend id='mzRYp'></legend><bdo id='mzRYp'><pre id='mzRYp'><center id='mzRYp'></center></pre></bdo></b><th id='mzRYp'></th></span></q></dt></tr></i><div id='mzRYp'><tfoot id='mzRYp'></tfoot><dl id='mzRYp'><fieldset id='mzRYp'></fieldset></dl></div>

    2. 如何查看 MySQL 数据库/表/列是什么字符集?

      时间:2023-08-19

    3. <tfoot id='Ozrbb'></tfoot>
        <bdo id='Ozrbb'></bdo><ul id='Ozrbb'></ul>
          <legend id='Ozrbb'><style id='Ozrbb'><dir id='Ozrbb'><q id='Ozrbb'></q></dir></style></legend>

              <tbody id='Ozrbb'></tbody>
            1. <small id='Ozrbb'></small><noframes id='Ozrbb'>

            2. <i id='Ozrbb'><tr id='Ozrbb'><dt id='Ozrbb'><q id='Ozrbb'><span id='Ozrbb'><b id='Ozrbb'><form id='Ozrbb'><ins id='Ozrbb'></ins><ul id='Ozrbb'></ul><sub id='Ozrbb'></sub></form><legend id='Ozrbb'></legend><bdo id='Ozrbb'><pre id='Ozrbb'><center id='Ozrbb'></center></pre></bdo></b><th id='Ozrbb'></th></span></q></dt></tr></i><div id='Ozrbb'><tfoot id='Ozrbb'></tfoot><dl id='Ozrbb'><fieldset id='Ozrbb'></fieldset></dl></div>
              • 本文介绍了如何查看 MySQL 数据库/表/列是什么字符集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                什么是(默认)字符集:

                What is the (default) charset for:

                • MySQL 数据库

                • MySQL database

                MySQL 表

                MySQL 列

                推荐答案

                这是我的做法 -

                对于模式(或数据库 - 它们是同义词):

                For Schemas (or Databases - they are synonyms):

                SELECT default_character_set_name FROM information_schema.SCHEMATA 
                WHERE schema_name = "schemaname";
                

                对于表格:

                SELECT CCSA.character_set_name FROM information_schema.`TABLES` T,
                       information_schema.`COLLATION_CHARACTER_SET_APPLICABILITY` CCSA
                WHERE CCSA.collation_name = T.table_collation
                  AND T.table_schema = "schemaname"
                  AND T.table_name = "tablename";
                

                对于列:

                SELECT character_set_name FROM information_schema.`COLUMNS` 
                WHERE table_schema = "schemaname"
                  AND table_name = "tablename"
                  AND column_name = "columnname";
                

                这篇关于如何查看 MySQL 数据库/表/列是什么字符集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何在 MySQL 中使用命令行导入 SQL 文件? 下一篇:MySQL查询GROUP BY日/月/年

                相关文章

                最新文章

                1. <small id='VX34a'></small><noframes id='VX34a'>

                  1. <tfoot id='VX34a'></tfoot>

                    <legend id='VX34a'><style id='VX34a'><dir id='VX34a'><q id='VX34a'></q></dir></style></legend>

                      <bdo id='VX34a'></bdo><ul id='VX34a'></ul>
                    <i id='VX34a'><tr id='VX34a'><dt id='VX34a'><q id='VX34a'><span id='VX34a'><b id='VX34a'><form id='VX34a'><ins id='VX34a'></ins><ul id='VX34a'></ul><sub id='VX34a'></sub></form><legend id='VX34a'></legend><bdo id='VX34a'><pre id='VX34a'><center id='VX34a'></center></pre></bdo></b><th id='VX34a'></th></span></q></dt></tr></i><div id='VX34a'><tfoot id='VX34a'></tfoot><dl id='VX34a'><fieldset id='VX34a'></fieldset></dl></div>