-
手掌心
我就是这么做的-对于模式: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";
-
ABOUTYOU
为柱:SHOW FULL COLUMNS FROM table_name;
-
白衣染霜花
为数据库:USE your_database_name;show variables like "character_set_database";-- or:-- show variables like "collation_database";参比本页..并查看MySQL手册