Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
TIMESTAMP 引数の年部分を返します。
YEAR( timestamp-expression )
timestamp-expression TIMESTAMP 値。
SMALLINT
指定された TIMESTAMP 値の年部分が SMALLINT として返されます。
SQL/2008 ベンダー拡張。
次の例は、値 2001 を返します。
SELECT YEAR( '2001-09-12' );