常用语句

select * from (select MONTHS_BETWEEN(sysdate(),worktime) AS result,* from F_CIS_SDT_TAX_GRANT_INFO) tmp_0 where result<=24 ---计算两个日期之间的月份差值

 

posted @ 2020-07-31 15:56  Smilevv-45  阅读(101)  评论(0编辑  收藏  举报