DAY_INTERVAL
構文
DAY_INTERVAL(from_year, from_month, from_day, to_year, to_month, to_day)
パラメーター
from_year
2 桁または 4 桁の有効な年。
from_month
1 から 12 の有効な月。
from_day
1 から 31 の有効な日付。
to_year
2 桁または 4 桁の有効な年。
to_month
1 から 12 の有効な月。
to_day
1 から 31 の有効な日付。
説明
DAY_INTERVAL
は、 指定開始日 (
from_year/from_month/from_day)
と 指定終了日
(to_year/to_month/to_day)
の間の日数を戻します。
例
DAY_INTERVAL(2000,8,31,2000,12,31)
は 数値 122 を戻します。
関連関数
関数
説明
DAY_BETWEEN
指定された 2 つの日付ストリングの間の日数を戻します。
DAY_FROMNOW
現在の日付と指定日の間の日数を戻します。
Copyright IBM Corporation 2015. All Rights Reserved.