Par*_*ras 7 sql-server unicode collation
我想在我的网站中使用unicode文本.我在数据库中有nvarchar(max)数据类型来存储数据.当我将unicode文本保存到数据库中时,它工作正常.但是,当我尝试执行一些SQL操作时,unicode文本更改为"?????" 例如,下面的查询
declare @unicodetext nvarchar(250)
set @unicodetext='????'
select @unicodetext
Run Code Online (Sandbox Code Playgroud)
结果

这是什么解决方案?谢谢
Fil*_*urt 12
尝试
declare @unicodetext nvarchar(250)
set @unicodetext = N'????'
select @unicodetext
Run Code Online (Sandbox Code Playgroud)
也许您注意到SQL Server N在为您生成DDL脚本时使用任何引用的字符串输入.
| 归档时间: |
|
| 查看次数: |
7595 次 |
| 最近记录: |