使用什么数据类型来存储这些字符:'●♬ஜ۩卐۩ஜ̶●'

what data type to use to stored these characters: '●▬ஜ۩卐۩ஜ▬●'

如何处理(select 并打印)以下字符集:

DECLARE  @V NVARCHAR(108)
SELECT @V = '●▬▬▬▬▬▬▬▬▬ஜ۩卐۩ஜ▬▬▬▬▬▬▬▬▬●'

SELECT @V
PRINT @V

即使在调试时,变量的内容也没有正确显示。

您在代码之前错过了 N..阅读此处详细了解为什么我们需要在字符前附加 N''..https://softwareengineering.stackexchange.com/questions/155859/why-do-we-need-to-put-n-before-strings-in-microsoft-sql-server

DECLARE  @V NVARCHAR(1080)
SELECT @V = N'●▬▬▬▬▬▬▬▬▬ஜ۩卐۩ஜ▬▬▬▬▬▬▬▬▬●'

SELECT @V
PRINT @V