34,590
社区成员
发帖
与我相关
我的任务
分享
with Cra
as
(
select NULL a ,'DTHX15020900001' b
union all select 'test345' ,'DTHX15021500001'
union all select NULL ,'DTHX15021500003'
union all select 'test123', 'DTHX15021600001'
)
select * from Cra where isnull(a,'') not like '%test123%'
select notes,id from 表名
where notes is null or notes not like '%test123%'
SELECT * FROM TB
WHERE notes IS NULL OR notes<>N'test123'