datetime timestamp year date time drop table test;create table test (dt datetime, ts timestamp, y year, d date, t time);insert into test values(now(),now(),now(),now(),now());select * from test;2018-07-14 21:55:13 , 2018-07-14 21:55:13, 2018, 2018-07