What does N' stands for in a SQL script ? (the one used before characters in insert script)

后端 未结 7 2399
孤城傲影
孤城傲影 2020-11-29 09:05

I generated an sql script like this,

INSERT [dbo].[TableName] ([Sno], [Name], [EmployeeId], [ProjectId], [Experience]) 
VALUES (1, N\'Dave\', N\'ESD157\', N\         


        
7条回答
  •  暖寄归人
    2020-11-29 09:51

    N is to specify that its a string type value.

    [N]'tsql_string'

    Is a constant string. tsql_string can be any nvarchar or varchar data type. If the N is included, the string is interpreted as nvarchar data type.

提交回复
热议问题