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
veeru417veeru417 

Can anyone convert this query to Starts with the given search text.

Hi,

i am new to this .Can anyone convert this query to Starts with  the given search text value plsss 

 

'select id, name  from Account ' +
'where name LIKE \'%'+searchText+'%\' order by name';

Best Answer chosen by Admin (Salesforce Developers) 
EnthEnth

err...why not just try:

 

'select id, name  from Account ' +
'where name LIKE \''+searchText+'%\' order by name';

 


All Answers

EnthEnth

err...why not just try:

 

'select id, name  from Account ' +
'where name LIKE \''+searchText+'%\' order by name';

 


This was selected as the best answer
veeru417veeru417

Thank you very much dude

 

veer