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, 1069🔥, 0💬
Popular Posts:
How To End a Stored Procedure Properly in SQL Server Transact-SQL? Where the end of the "CREATE PROC...
How AdventureWorksLT tables are related in SQL Server? There are 12 user tables defined in Adventure...
How To Find Out What Privileges a User Currently Has in Oracle? Privileges granted to users are list...
How to put statements into a statement block in SQL Server Transact-SQL? You can put statements into...
How To Divide Query Output into Multiple Groups with the GROUP BY Clause in SQL Server? Sometimes, y...