Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Differences in Escaping Reserved Characters
If you have a single quote or backslash in a string literal, use two backslashes
instead of one to escape it.
For example, the following statement in a Java client program is valid for finding account names like Bob's B-B-Q.
1SELECT ID from ACCOUNT WHERE Name LIKE 'Bob\'s B-B-Q%'For the AJAX Toolkit, escape the single quote literal character twice.
1SELECT ID from ACCOUNT WHERE Name LIKE 'Bob\\'s B-B-Q%'