+ 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