SQL - two months from todays date in Oracle

前端 未结 4 810
暖寄归人
暖寄归人 2021-01-18 18:23

I have a column that stores the last modified date. I want to check in a SQL query if its value is more than 2 months from the current date.

I know I need to use SYS

4条回答
  •  清酒与你
    2021-01-18 18:35

    try this

    SELECT field1,field2 from yourtable where field_date > add_months(SYSDATE, 2);
    

    Bye

提交回复
热议问题