Returns the hour component of a datetime.
HOUR( datetime-expression )
datetime-expression The datetime.
SMALLINT
The value returned is a number from 0 to 23 corresponding to the datetime hour.
SQL/2003 Vendor extension.
The following statement returns the value 21:
SELECT HOUR( '1998-07-09 21:12:13' ); |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |