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)