MySQL 返回字符串自变量的字符集
返回字符串自变量的字符集。
1 |
mysql> <strong>SELECT CHARSET('abc');</strong> |
1 |
-> 'latin1' |
1 |
mysql> <strong>SELECT CHARSET(CONVERT('abc' USING utf8));</strong> |
1 |
-> 'utf8' |
1 |
mysql> <strong>SELECT CHARSET(USER());</strong> |
1 |
-> 'utf8' |