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號