I amI'm learning sql server 2008 tT-sqlSQL.
To From the examples I've seen, to insert text in a varchar typevarchar() cell, I can write just needthe string to insert a string 'abc', but for nvarchar typenvarchar() cells, I need to addevery example prefix the strings with the letter N in front (N'abc').
I havetried the following query on a table employee, itwhich has 2 fieldsnvarchar() rows, firstname and lastname, they are both nvarchar(20).
insert into employee values('abc', 'def'); I test it, it works fine, seems likeso the prefix N is not required.:
insert into [TableName] values ('Hello', 'World')
Why we need to addthe strings are prefixed with N in front for nvarchar type, what'severy example I've seen?
What are the propros or con if we are notcons of using itthis prefix?