Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Databases Programming Interviews:BtrieveClipperData ModelingData StructuresDatabase AdministrationDatabase Administrator (DBA)Database AnalystDatabase DeveloperDB DevelopmentEDI/Data Integration ExpertFirebirdHierarchicalIBM DB2InformixJava DatabaseMariaDBMicrosoft Access DeveloperMongoDBMS SQL ServerMySQL ProgrammingNetworkNoSQLObject RelationalPostgrePostgreSQLProgressRDBMSRelationalSQLSQL AdministratorSQL and PL/SQLSQL Notification ServicesSQL server 2008SSRSStored ProcedureSybaseTeradata
Copyright © 2018. All Rights Reserved
MS SQL Server Interview Question:
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
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.