查询7天之内的数据

SELECT makedate,a.*
FROM lccont a
WHERE contno='000000061682020'
and a.makedate in (SELECT to_date(to_char(SYSDATE - LEVEL + 1, 'yyyy/mm/dd'),'yyyy/mm/dd') today
FROM DUAL
connect BY LEVEL <= 7);

posted @ 2019-09-14 09:46  徒手攀岩  阅读(888)  评论(0编辑  收藏  举报