3개월 전 데이터 select하기 - add_months()
작성자 관리자 작성시간 2009-06-22 18:00:49
 

select sa_user, to_date(sa_temp_date,'YYYYMMDD') from ssouser.ssomng_view
where sa_temp_date between '20090101' and '20090301';


select * from ssouser.ssomng_view
where sa_temp_date <= to_char(add_months(sysdate ,-3),'yyyymmdd') and sa_temp='71';


목록 | 입력 | 수정 | 답변 | 삭제