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)大致的意思就是不用临时表的话,如何能够把我给定列表中有,而数据表里没有的数据选取为一个结果集?
解决方案 »
- [求助]delphi调用PB写的dll文件
- 怎样读ini文件的布尔型
- 最简单我也不会,怎样在一个函数或过程中调用一个button的click事件?
- 求interbase6.0 或 6.0以上版本源码,另请评论一下interbase和firebird的不同
- memo的问题
- 如何让数据表某一字段只能输入唯一值
- Google为什么变成了服务器错误,页面可以访问但是无法查询
- 台资企业薪资状况调查﹐正在台资公司上班的朋友的请进﹗
- 救命啊,我怎么犯了这么个大错,如果我以后再也犯不了这么大的错怎么办?救命啊!
- 十万火急,超级Delphi大难题,高分相送
- 求助:Delphi里有没有指向类的指针?
- Excel数据导入到SqlServer出错!!急,明天用啊!
就是这样啊
not in 实现不了
where @i in (683478378,13434) and i not in
最后一个I有错,整体上应该不会错的
ta里面没有的数据选不出来啊