column_name TIME;
start_at TIME;
column_name TIME(N);
begin_at TIME(3);
CREATE TABLE tests ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255) NOT NULL, start_at TIME, end_at TIME );
INSERT INTO tests(name,start_at,end_at) VALUES('Test 1', '08:00:00','10:00:00');
SELECT name, start_at, end_at FROM tests;
INSERT INTO tests(name,start_at,end_at) VALUES('Test 2','083000','101500');
INSERT INTO tests(name,start_at,end_at) VALUES('Test invalid','083000','108000');
INSERT INTO tests(name,start_at,end_at) VALUES('Test 3',082000,102000);
INSERT INTO tests(name,start_at,end_at) VALUES('Test 4','9:5:0',100500);
SELECT CURRENT_TIME() AS string_now, CURRENT_TIME() + 0 AS numeric_now;
SELECT CURRENT_TIME(), ADDTIME(CURRENT_TIME(), 023000), SUBTIME(CURRENT_TIME(), 023000);
SELECT TIMEDIFF(end_at, start_at) FROM tests;
SELECT name, TIME_FORMAT(start_at, '%h:%i %p') start_at, TIME_FORMAT(end_at, '%h:%i %p') end_at FROM tests;
SELECT CURRENT_TIME(), UTC_TIME();