Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - SQL Reference » SQL Functions » Alphabetical list of functions

RTRIM function [String] Next Page

SECOND function [Date and time]

Returns a second of the given date.


SECOND( datetime-expression )


datetime-expression    The datetime value.


Returns a number from 0 to 59 corresponding to the second component of the given datetime value.

Standards and compatibility

The following statement returns the value 25.

SELECT SECOND( '1998-07-13 21:21:25' );