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'

posted @ 2025-02-19 16:29  Gary__Chen  阅读(24)  评论(0)    收藏  举报