What is the difference between SOQL and SOSL?

Answer

The differences are mentioned in the table below:

SOQL vs SOSL

SOQL (Salesforce Object Query Language) SOSL (Salesforce Object Search Language)
Only one object can be searched at a time Many objects can be searched at a time
Can query any type of field Can query only on email, text or phone
Can be used in classes and triggers Can be used in classes, but not triggers
DML Operation can be performed on query results DML Operation cannot be performed on search results
Returns records Returns fields

All salesforce Questions

Ask your interview questions on salesforce

Write Your comment or Questions if you want the answers on salesforce from salesforce Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---