How To Write Character String Constants or Literals in MS SQL Server?
Submitted by: AdministratorCharacter 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
* 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
Top MS SQL Server Questions
☺ | How To Select Some Specific Rows from a Table in MS SQL Server? |
☺ | PHP MSSQL - How To Display a Past Time in Days, Hours and Minutes? |
☺ | Does Index Slows Down INSERT Statements? |
☺ | How To Execute the Cursor Queries with "OPEN" Statements? |
☺ | What Happens If Strings Are Casted into Wrong Code Pages in MS SQL Server? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Sybase Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |