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