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, 1523🔥, 0💬
Popular Posts:
How To Convert Binary Strings into Hexadecimal Character Strings in SQL Server? When a query returns...
How Many Groups of Data Types in MySQL? MySQL support 3 groups of data types as listed below: String...
How To Select All Columns of All Rows from a Table with a SELECT statement in SQL Server? The simple...
What To Do If the StartDB.bat Failed to Start the XE Instance in Oracle? If StartDB.bat failed to st...
Where Is the Export Dump File Located in Oracle? If you are not specifying the dump directory and fi...