declare @i as int
select @i from ta with(nolock)
where @i in (683478378,13434) and i not in
(select ta_01 from ta with(nolock) where ta_25>=getdate()-0.1)大致的意思就是不用临时表的话,如何能够把我给定列表中有,而数据表里没有的数据选取为一个结果集?
select @i from ta with(nolock)
where @i in (683478378,13434) and i not in
(select ta_01 from ta with(nolock) where ta_25>=getdate()-0.1)大致的意思就是不用临时表的话,如何能够把我给定列表中有,而数据表里没有的数据选取为一个结果集?
就是这样啊
not in 实现不了
where @i in (683478378,13434) and i not in
最后一个I有错,整体上应该不会错的
ta里面没有的数据选不出来啊