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
rajuraju 

API: Using 'IN' constraint in where clause

When querying for records, can we use 'in' constraint in where clause ?
 
Expample: Select Name from Account where ID in ('1111', '2222', '3333');
 
Thank you
SuperfellSuperfell
No, you need to write it as a set of OR clauses.
rajuraju
Yes. Thank you very much for the response.