Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回 TIMESTAMP 值的小时部分。
HOUR( timestamp-expression )
timestamp-expression TIMESTAMP 值。
SMALLINT
返回值为 TIMESTAMP 表达式的小时部分,该值为介于 0 和 23 之间的 SMALLINT 值。
以下语句返回值 21:
SELECT HOUR( '1998-07-09 21:12:13' );