What are the STRING ESCAPE AND RESERVED CHARACTERS in SOQL AND SOSL?

STRING ESCAPE CHARACTERS:


             In computing and telecommunication, an escape character is a character which invokes an alternative interpretation on subsequent characters in a character sequence. An escape character is a particular case of metacharacters. Generally, the judgement of whether something is an escape character or not depends on context.

You can use the following escape sequences with SOQL:
Escape Sequences
Meaning
\n or \N
New Line
\r or \R
Carriage return
\t or \T
Tab
\b or \B
Bell
\f or \F
Form feed
\"
One double-quote character
\'
One single-quote character
\\
Backslash
LIKE expression only: \_
Matches a single underscore character ( _ )
LIKE expression only:\%
Matches a single percent sign character ( % )

Example:
Select all Accounts whose name begins with the letter 'N'.

SELECT Id FROM Account WHERE Name LIKE N%'

RESERVED CHARACTERS:
Reserved_Characters

A reserved characters are a character or set of characters that cannot be used because of their use in other locations or by the operating system.

The following characters are reserved:
'
Single quote
\
Backslash



Example:
To query the Account Name field for “Nagarjuna’s site,” use the following SELECT statement:

SELECT Id FROM Account
WHERE Name LIKE 'Nagarjuna\'s site'

COMMENTS

Name

Apex Apex Default Methods Apex Methods Apex_Collections Apps Batch Apex Books CRM eBooks Data Import Wizard Data Management DataLoader Dataloader.io Difference Between Error in Salesforce FAQ's FAQ's-Apex FAQ's-Apps FAQ's-CRM FAQ's-Data loader FAQ's-SOQL & SOSL FAQ'S-Triggers FAQ's-User Profile & Security FAQ's-VF Force.com Explorer Force.com Ide Formulas & Functions Integration Interview Questions Only Latest_Updates Limits&Best Practices Online-Training Reports and Dashboards Salesforce Deployment Salesforce Realtime Examples On Development Salesforce Realtime Task On Admin Salesforce Realtime Tasks Salesforce Realtime Tasks- Apex Salesforce Training Salesforce1 Mobile Sites SOQL Spring'14 Release Triggers User Profile & Security VF Tags VisualForce Winter'14 Release Wizard for Accounts/Contacts Workbench Workflows and Approvals
false
ltr
item
Sfdc Gurukul- All in one place for salesforce and force.com step by step tutorial for beginners: What are the STRING ESCAPE AND RESERVED CHARACTERS in SOQL AND SOSL?
What are the STRING ESCAPE AND RESERVED CHARACTERS in SOQL AND SOSL?
What Are The String Escape And Reserved Characters In Soql And Sosl?,what are the escape character,String Escape Characters,soql String Escape Characters,sosl String Escape Characters,salesforce String Escape Characters,soql Reserved Characters,Reserved Characters,sosl Reserved Characters,salesforce Reserved Characters
http://1.bp.blogspot.com/-XpWJ2E1MS4w/Uk0S8Wq2TrI/AAAAAAAAA_0/UM0iNL9dwqI/s1600/Reserved_Characters.jpg
http://1.bp.blogspot.com/-XpWJ2E1MS4w/Uk0S8Wq2TrI/AAAAAAAAA_0/UM0iNL9dwqI/s72-c/Reserved_Characters.jpg
Sfdc Gurukul- All in one place for salesforce and force.com step by step tutorial for beginners
http://sfdcgurukul.blogspot.in/2013/10/what-are-string-escape-and-reserved.html
http://sfdcgurukul.blogspot.in/
http://sfdcgurukul.blogspot.com/
http://sfdcgurukul.blogspot.com/2013/10/what-are-string-escape-and-reserved.html
true
4199533888133360731
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy