SELECT TIME_FORMAT('02:17', '%H') : DATE_FORMAT « Date Time « SQL / MySQL






SELECT TIME_FORMAT('02:17', '%H')

    
mysql>
mysql> SELECT TIME_FORMAT('02:17', '%H');
+----------------------------+
| TIME_FORMAT('02:17', '%H') |
+----------------------------+
| 02                         |
+----------------------------+
1 row in set (0.00 sec)

   
    
    
    
  








Related examples in the same category

1.Using Patterns with Non-String Values