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, 1463🔥, 0💬
Popular Posts:
Where to find MySQL database server tutorials? Here is a collection of tutorials, tips and FAQs for ...
What Is a Parameter File in Oracle? A parameter file is a file that contains a list of initializatio...
How To Verify a User name with SQLCMD Tool in SQL Server? The quickest way to verify a user name in ...
How To Divide Query Output into Multiple Groups with the GROUP BY Clause in SQL Server? Sometimes, y...
How To Calculate Age in Days, Hours and Minutes in SQL Server Transact-SQL? On many Web sites, news ...