如何在 sql server 中声明为 varchar 的密码字段中插入特殊字符,如 ☺☻♥♦♣ ?
我无法插入这些字符。请给我建议。
最佳答案
我想你是想从管理工作室做到这一点?那么您应该使用 N'yourtext'
作为 unicode 字符串。
drop table #temp
GO
create table #temp (
pwd nvarchar(255)
)
GO
insert into #temp (pwd)
select N'☺☻♥♦♣'
select
*
from #temp
关于sql-server - 如何在 sql server 中声明为 varchar 的密码字段中插入特殊字符,如 ☺☻♥♦♣,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30253924/