tsql - What is the 'N' when you are dealing with SQL such as (N'') -



tsql - What is the 'N' when you are dealing with SQL such as (N'') -

just in question, not sure difference between '' , n'' in sql.

it's shorthand nvarchar. using notation tells parser treat next string info nvarchar instead of default varchar.

example:

select n'this test'; -- nvarchar info select 'test test'; -- varchar info

sql tsql

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -