LoginSignup
6
1

date_subtract()で日付の引き算:PostgreSQL16の新機能で遊んでみよう#2

Posted at

SQL関数date_subtract()について

日付時刻の減算ができる関数。

PostgreSQL15(16以前)とPostgreSQL16では何が違うのか

タイムゾーンの指定の有無。
PostgreSQL15以前も、この関数は使えましたが
PostgreSQL16からは第3引数でタイムゾーンの指定ができるようになりより便利な関数となりました。

image.png

タイムゾーンとは何か

同じ標準時間を利用している地域の範囲のことです。
例えば沖縄が13時の時は北海道でも13時なので、沖縄と北海道は同じタイムゾーンです。

以上です。ここまで読んで頂きありがとうございました。
PostgreSQL16の新機能、ぜひ試してみてください!

6
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
1