sql - double quotes at end of concatenated TSQL string -
in following concatenated tsql string, apparent single quotes separate literal part of string variables, double quotes @ end of string perplexes me since pattern seems n' denote literal pieces. don't see explanation although know there one?
set @ntsql = n'select * sdmembership ' + @backupname + @backupdate + n' fiscalyear = ' + cast(@fiscalyear varchar(4)) + n''
it nchar empty string @ end
pretty sure nothing
null show empty string not same null
select null [dbnull], n'ldkjf' [string], len(n'ldkjf') [len] select null [dbnull], n'' [empty_string], len(n'') [len] and clarity don't use term double quote character.
2 single quotes.
Comments
Post a Comment