Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指定した年、月、日に相当する日付値を返します。引数は -32768 ~ 32767 の SMALLINT です。
YMD( smallint-expression1, smallint-expression2, smallint-expression3 )
smallint-expression1 年。
smallint-expression2 月の数。月が 1 ~ 12 の範囲外である場合は、年が相応に調整されます。
smallint-expression3 日の数。任意の整数を指定でき、それに応じて日付が調整されます。
DATE
SQL/2008 ベンダー拡張。
次の文は、値 1998-06-12 を返します。
SELECT YMD( 1998, 06, 12 );
値が通常の範囲から外れている場合、それに応じて日付が調整されます。たとえば、次の文は DATE 値 2000-03-01 を返します。
SELECT YMD( 1999, 15, 1 );