如何查看MySQL数据库/表/列的字符集?什么是(默认)字符集:MySQL数据库MySQL表MySQL列
3 回答
手掌心
TA贡献1942条经验 获得超3个赞
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` CCSAWHERE 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";
添加回答
举报
0/150
提交
取消