思路:
trunc(日期,'year')对年截取,外层嵌套 add_months(日期,数字),数字写1获得2月月份,外层嵌套last_day获得二月最后一天的dd,外层嵌套 to_char(日期,'格式'),把日期dd转为字符dd,写到case when中判断
答案:
select (case
when to_char(last_day(add_months(trunc(sysdate,'year'),1)),'dd')='28' then '平年'
else '闰年'
end) from dual