+ Start a Discussion

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
Does saying
where FieldName__c in ('X', 'Y', 'Z')

not do what you are trying to acomplish?