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
HelloSanHelloSan 

How to write a where clause in Batch class string query with multiple values?

i need a query to fetch records from account object where program__c(program__c is a picklist field on account form) field is equals to X,Y,Z
pconpcon
Does saying
 
where FieldName__c in ('X', 'Y', 'Z')

not do what you are trying to acomplish?