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类型封装


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM