Collections:
SECOND() - Seconds of Time
How to extract the seconds from a given time using the SECOND() function?
✍: FYIcenter.com
SECOND(time) is a MySQL built-in function that
returns the second value from a given time.
For example:
SELECT SECOND(NOW()), NOW(); -- +---------------+---------------------+ -- | SECOND(NOW()) | NOW() | -- +---------------+---------------------+ -- | 13 | 2023-11-14 23:08:13 | -- +---------------+---------------------+
Reference information of the SECOND() function:
SECOND(time): int Returns the seconds for time, in the range 0 to 59. Arguments, return value and availability: time: Required. The time to extract the second from. int: Return value. The second value. Available since MySQL 4.
Related MySQL functions:
⇒ SEC_TO_TIME() - Converting Seconds to Time
2023-11-17, 1342🔥, 0💬
Popular Posts:
How To Use DATEADD() Function in SQL Server Transact-SQL? DATEADD() is a very useful function for ma...
What Privilege Is Needed for a User to Delete Rows from Tables in Another Schema in Oracle? For a us...
How to execute statements under given conditions in SQL Server Transact-SQL? How to use IF ... ELSE ...
How To Generate Random Numbers with the RAND() Function in SQL Server Transact-SQL? Random numbers a...
What Happens to the Current Transaction If a START TRANSACTION Is Executed in MySQL? If you are in a...