Collections:
MINUTE() - Minutes of Time
How to extract the minutes from a given time using the MINUTE() function?
✍: FYIcenter.com
MINUTE(time) is a MySQL built-in function that
returns the minute value from a given time.
For example:
SELECT MINUTE(NOW()), NOW(); -- +---------------+---------------------+ -- | MINUTE(NOW()) | NOW() | -- +---------------+---------------------+ -- | 6 | 2023-11-14 23:06:09 | -- +---------------+---------------------+
Reference information of the MINUTE() function:
MINUTE(time): int Returns the minutes for time, in the range 0 to 59. Arguments, return value and availability: time: Required. The time to extract the minute from. int: Return value. The minute value. Available since MySQL 4.
Related MySQL functions:
⇐ MICROSECOND() - Microseconds of Time
2023-11-17, 885🔥, 0💬
Popular Posts:
How To Round a Numeric Value To a Specific Precision in SQL Server Transact-SQL? Sometimes you need ...
How To Query Tables and Loop through the Returning Rows in MySQL? The best way to query tables and l...
How To Use SQL*Plus Built-in Timers in Oracle? If you don't have a stopwatch/timer and want to measu...
How To Connect ASP Pages to Oracle Servers in Oracle? If you are running Windows IIS Web server and ...
Can Date and Time Values Be Converted into Integers in SQL Server Transact-SQL? Can date and time va...