Date Time Functions MySQL Tutorial

mysql>
mysql> SELECT EXTRACT(MINUTE FROM '2003-01-02 10:30:00.000123');
+---------------------------------------------------+
| EXTRACT(MINUTE FROM '2003-01-02 10:30:00.000123') |
+---------------------------------------------------+
|                                                30 |
+---------------------------------------------------+
1 row in set (0.00 sec)