如何在密码字段中插入特殊字符,如☺☻♥♦which,在sql server中声明为varchar?我无法插入那些字符。请加上我。
答案 0 :(得分:2)
我想你是想从管理工作室那里做到的?然后你应该使用N'yourtext'
作为unicode字符串。
drop table #temp
GO
create table #temp (
pwd nvarchar(255)
)
GO
insert into #temp (pwd)
select N'☺☻♥♦♣'
select
*
from #temp