1.

What are the differences between SOQL and SOSL in salesforce?

Answer»
SOQL(SALESFORCE Object Query Language)SOSL(Salesforce Object Search Language)
Using SOQL we can search only one object at a timeUsing SOSL we can search multiple objects at a time
We can query on all fields of any of the datatype We can query on the fields whose data TYPE is phone, text, and email
DML operations can be performed on query resultsDML operations cannot be performed on search results
Indexing happens synchronouslyIndexing happens asynchronously
We can use SOQL in the CLASSES and TRIGGERSSOSL cannot be used in triggers but can be used in classes


Discussion

No Comment Found