MySQLのDATETIMEやTIMESTAMPでミリ秒などを設定したい

環境 MySQL5.7での確認 こんな感じの定義の場合 drop table if exists sample1; create table if not exists sample1( id bigint not null auto_increment, date1 datetime not null, date2 timestame not null, primary key(id) ); ↓ insert into sample1(date1, date2) values(current_timestamp, current_timestamp);↓ …