34,872
社区成员
发帖
与我相关
我的任务
分享
select * from (
select * from tb1 t where not exists
(select 1 from tbt where id =t.id )
) A
where A.id like '% ...%' ---加你的like 条件
select * from tb1 t where not exists
(select 1 from tbt where id =t.id )
select * from tb1 where id like '% ...%' ---加你的like 条件
and id not in(selct id from tb2)
SELECT * FROM TB1 T WHERE NOT EXISTS(SELECT 1 FROM TB2 T1 WHERE T.ID LIKE '%'+T1.ID+'%')
select * from tb2 t where not exists
(select 1 from tb1 where id =t.id )
select * from tb2 t where not exists(select 1 from tb1 where t.id like '%+'tb1.id+'%')