level 1
查A表里面的东西,但是需要用到B表里面的日期,A表跟B表有同一个列名“sysprimarykey”
我想查A表里面2018年1月1至2018年12月31日里面东西,但是A表里面没有日期
2019年01月14日 06点01分
1
level 1
select * from A a
where a.sysprimarykey in (select b.sysprimarykey from B b where b.date between '2018年1月1' and '2018年12月31日')
2019年01月16日 11点01分
3
谢谢!查到了~
2019年01月20日 00点01分
level 4
select a. * from A a left join B b on a.sysprimarykey = b.sysprimarykey
where b.date between '2018年1月1' and '2018年12月31日'
2019年01月17日 01点01分
4
谢谢!查到了~
2019年01月20日 00点01分