mysql之timestamp(3)测试

timestamp(3) 表示秒后3位小数,注意最多为6位。

create table test_timestamp(
t1 timestamp(3) default now(3),
t2 timestamp(4) default now(4),
t3 timestamp(5) default now(5),
t4 timestamp(6) default now(6)
);

insert into test_timestamp values();

select *from test_timestamp ;

MySQL中timestamp、datetime对应的Java类型封装

posted @ 2022-01-24 10:33  钱塘江畔  阅读(972)  评论(0编辑  收藏  举报