
以下是检查 MySQL 表列的字符集的查询 -
mysql> Select Column_name 'Column', Character_set_name 'Charset' FROM
information_schema.columns where table_schema = 'db_name' and
table_name ='table_name';例如,下面的查询返回名为“sample”的数据库中“test_char_set”表的列名称以及这些列的字符集。
mysql> Select Column_name 'Column', Character_set_name 'Charset' FROM
information_schema.columns where table_schema = 'Sample' and
table_name ='test_char_set';
+--------+---------+
| Column | Charset |
+--------+---------+
| Name | latin1 |
| Field | latin1 |
+--------+---------+
2 rows in set (0.03 sec)以上就是检查MySQL表列的字符集的查询是什么?的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号