2007-10-10 postgresql メモ postgresql timestamp型同士の計算を行うと結果がinterval型になり○○daysとなる。 そのdaysをとるために、 extract(day from 対象A - 対象B) とするとうまくいった。