我需要从以下条件的某些表中检索记录
BETWEEN SYSDATE-1095 AND SYSDATE
包中的SSIS
连接到Oracle数据库。但是,数据流任务与此语句挂起。当我尝试用BETWEEN SYSDATE-50 AND SYSDATE
替换此行时,它运行正常。
我想将数据流任务分解为几个任务,并在每个任务中替换上面的代码行,以便覆盖3年的记录。你能帮忙吗?如果我在每个数据流任务中替换它们,这些后续行是否正确?
AND LAB.DETAIL_SVC_DATE BETWEEN SYSDATE-100 AND SYSDATE -- data flow task1
AND LAB.DETAIL_SVC_DATE BETWEEN SYSDATE-200 AND SYSDATE+100 --data flow task2
AND LAB.DETAIL_SVC_DATE BETWEEN SYSDATE-300 AND SYSDATE+200 --etc
AND LAB.DETAIL_SVC_DATE BETWEEN SYSDATE-400 AND SYSDATE+300
AND LAB.DETAIL_SVC_DATE BETWEEN SYSDATE-500 AND SYSDATE+400
AND LAB.DETAIL_SVC_DATE BETWEEN SYSDATE-600 AND SYSDATE+500
AND LAB.DETAIL_SVC_DATE BETWEEN SYSDATE-700 AND SYSDATE+600
AND LAB.DETAIL_SVC_DATE BETWEEN SYSDATE-800 AND SYSDATE+700
AND LAB.DETAIL_SVC_DATE BETWEEN SYSDATE-900 AND SYSDATE+800
AND LAB.DETAIL_SVC_DATE BETWEEN SYSDATE-1000 AND SYSDATE+900
AND LAB.DETAIL_SVC_DATE BETWEEN SYSDATE-1095 AND SYSDATE+1000
AND LAB.DETAIL_SVC_DATE BETWEEN SYSDATE-1096 AND SYSDATE+1095