原创 oracle計算日期只差得出季度

一、基本用法20個月換算成1年8個月,select trunc(20/12) || '年' ||mod(20,12) || '個月' from dual 二、深入用法要結合months_between函數,結果爲1年11個月select t