Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Delete Data older than exactly 2 years
Sanjay
Can you tell me why you can't use the 365/366 logic but can use add_months ?
On 4/20/07, Sanjay Mishra <smishra_97_at_yahoo.com> wrote:
>
> Thanks Mindaugas
>
> *Mindaugas Navickas <mnavickas_at_yahoo.com>* wrote:
>
> delete table where record_timestamp < ADD_MONTHS(sysdate, -24)
>
>
>
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Apr 20 2007 - 11:46:11 CDT
![]() |
![]() |