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

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

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -