查看mysql和sqlserver数据库的默认编码方法

mysqlmysql

<!-- lang: shell -->
show variables like 'character\_set\_%';
show variables like 'collation_%';

sqlserversql

<!-- lang: shell -->
SELECT  COLLATIONPROPERTY('Chinese_PRC_Stroke_CI_AI_KS_WS', 'CodePage')

下面是查询结果:shell

936 简体中文GBKsqlserver

950 繁体中文BIG5code

437 美国/加拿大英语server

932 日文unicode

949 韩文io

866 俄文查询

65001 unicode UFT-8英语

相关文章
相关标签/搜索