select * from per_all_people_f papf where trunc(sysdate) between trunc(papf.effective_start_date) and trunc(papf.effective_end_date) and papf.employee_number = 145;…
--截取后得到的仍为date数据类型 select trunc(sysdate) from dual;--2017-03-13 00:00:00select trunc(sysdate+1) from dual;--2017-03-14 00:00:00 加一天 select trunc(sysdate,'yyyy') from dual;--2017-01-01 00:00:00select trunc(sysdate,'MM') from dual;--2017-03-01 00:00:00…