[오라클] 날짜 계산 SQL문 예시
... | 준팅 http://blog.naver.com/jun6739/110017203980# 날짜계산select months_between(sysdate,to_date(2007-12-22','yyyy-mm-dd')) -- months_between(A,B) = A-B/30--select add_months(sysdate,4) -- 특정일의 달수 더한 날--select next_day(sysdate,'friday') -- 특정일의 다음주 요일--select last_day(sysdate) -- 특정일의 해당 월의 마지막 날--select round(sysdate,'dd') -- 특정일의 반올림(오후면 다음날..)--select trunc(sysdate,'ww') -- 특정일의 전주 토요일(해당 전주의 마..
2007.08.30