Salesforce Apex SOQL 中 LIKE 和 NOT LIKE 关键字的使用
select Id, Name, Type from Account where Name like '%sample%'
select Id, Name, Type from Account where Name like '%sample%' and type = 'Prospect'
select Id, Name, Type from Account where not Name like '%sample%'
select Id, Name, Type from Account where (not Name like '%sample%') and type = 'Other'
select Id, Name, Type from Account where Name not like '%sample%'
select Id, Name, Type from Account where not Name like '%sample%' and type = 'Other'

浙公网安备 33010602011771号