How To Write Character String Constants or Literals in MS SQL Server?

Submitted by: Administrator
Character string literals are used everywhere in Transact-SQL statements. You need to learn some important rules on writing character string literals:

* Character string literals must be enclosed in single quotes as 'Welcome to GlobalGuideLine.com!'.
* An empty string must be expressed as ''.
* Single quote characters inside a string must be expressed as two single quotes. For example: 'It''s Sunday!'.
* Character strings use non-default character code pages must use the COLLATE clause to provide the code page through a collate name. For example, 'Fran?is' COLLATE French_CI_AS.

Submitted by: Administrator

Read Online MS SQL Server Job Interview Questions And Answers