开发者

sql server output charset

开发者 https://www.devze.com 2022-12-13 03:05 出处:网络
Is there any way to get MSSQL Server result in charset different from the native database encoding? I mean something like \"set na开发者_运维问答mes\" which is used by MySQL.What is the column type o

Is there any way to get MSSQL Server result in charset different from the native database encoding?

I mean something like "set na开发者_运维问答mes" which is used by MySQL.


What is the column type of your data? Is it varchar or nvarchar?

To get results in Unicode, simply cast varchar columns as nvarchar: SELECT CAST(Column AS nvarchar(size)) FROM Table


You can do this on a per column basis

SELECT COLUMN Collate CollationName
From Table
0

精彩评论

暂无评论...
验证码 换一张
取 消