function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SArunSArun 

Querying string with apostrophe in SOQL

I need to query string with apostrophe in it.

 

SELECT NAME FROM ACCOUNT WHERE NAME = 'TEST'ING'

 

Right now, i get a error message saying MALFORMED QUERY.  Can someone help me on this?

Message Edited by SArun on 11-13-2009 04:56 AM
Nick1746323Nick1746323

The escape for apostrophe is just \'

 

i.e. 

 

SELECT name FROM Account WHERE Name = 'TEST\'ING'