【发布时间】:2021-03-24 14:47:45
【问题描述】:
Apex 中的这段代码有什么问题?
String states = 'California,New York';
List<Account> lstACC = [SELECT Id, Name, BillingState FROM Account WHERE BillingState INCLUDES (:states) LIMIT 10];
在开发者控制台中出现错误:“BillingState FROM Account WHERE BillingState INCLUDES (:states)^ERROR at Row:1:Column:50 includes or excludes operator only valid on multipicklist field”。
【问题讨论】:
标签: salesforce apex soql