May 2005
Intermediate to advanced
352 pages
14h 39m
English
MINUTE( )
MINUTE(time)This function returns the minute value (0-59) of a given time.
SELECT CONCAT(HOUR(appointment), ':',
MINUTE(appointment)) AS 'Appointment'
FROM appointments
WHERE client_id = '3992'
AND appointment > CURDATE( );
+-------------+
| Appointment |
+-------------+
| 13:30 |
+-------------+This statement is using the string function CONCAT() to paste together the hour and the minute, with a colon
as a separator.
Read now
Unlock full access