mysql show time code example
Example 1: mysql get time from datetime
SELECT
date_format(datecol, '%H:%i:%s') as 'time' FROM table;
-- eg. 10:33:10
Example 2: query current time
CURRENT_TIMESTAMP
SELECT
date_format(datecol, '%H:%i:%s') as 'time' FROM table;
-- eg. 10:33:10
CURRENT_TIMESTAMP