2011-01-06 年度を取得 postgres exp_dateを年度に変換したいとする。(date型かtimestamp型) select case when date_part('month',exp_date) < 4 then date_part('year',exp_date)-1 else date_part('year',exp_date) end as nendo from example_table; という風にするといい。元号変換はしていないので注意。