标签:blog http io 使用 ar sp 2014 c on
方法 1、
convert(expression using character_set);
convert(‘123456789‘ using ascii);
方法 2、
cast(expresion as type character set = character_set);
cast(‘abc‘ as varchar(16) character set = utf8);
注意:
这里是不可以使用varchar类型的
如:
select cast(‘abc‘ as char(100) character set utf8); ?
select cast(‘abc‘ as varchar(100) character set utf8); ×
select cast(‘abc‘ as varchar character set utf8); ×
标签:blog http io 使用 ar sp 2014 c on
原文地址:http://www.cnblogs.com/JiangLe/p/4000957.html