how to insert unicode text to SQL Server from query window

后端 未结 5 1233
旧巷少年郎
旧巷少年郎 2020-12-01 06:21

I\'m using the following code:

INSERT INTO tForeignLanguage ([Name]) VALUES (\'Араб\')

this value inserted like this \'????\'

How d

5条回答
  •  粉色の甜心
    2020-12-01 06:56

    The following should work, N indicates a "Unicode constant string" in MSSQL:

    INSERT INTO tForeignLanguage ([Name]) VALUES (N'Араб')
    

提交回复
热议问题