zmztya

select years,months,abs(
trunc(
newer_date-
add_months( older_date,years*12+months )
)
) days from (select
trunc(months_between( to_date(\'20180625\', \'yyyymmdd\'), to_date(\'19960626\', \'yyyymmdd\') )/12) YEARS,
mod(trunc(months_between(to_date(\'20180625\', \'yyyymmdd\'), to_date(\'19960626\', \'yyyymmdd\') )),12 ) MONTHS,
to_date(\'20180625\', \'yyyymmdd\') newer_date,
to_date(\'19960626\', \'yyyymmdd\') older_date
from dual) shisui

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-09
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-11-17
相关资源
相似解决方案