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, 1094🔥, 0💬
Popular Posts:
How To Create a Table Index in Oracle? If you have a table with a lots of rows, and you know that on...
How to download and install Microsoft .NET Framework Version 2.0 in SQL Server? .NET Framework Versi...
How To Round a Numeric Value To a Specific Precision in SQL Server Transact-SQL? Sometimes you need ...
How To Create a Dynamic Cursor with the DYNAMIC Option in SQL Server Transact-SQL? If the underlying...
How To Get a List of All Tables with "sys.tables" View in SQL Server? If you want to see the table y...