datetime

Java Date Timestamp Date Comparison Pitfalls

Scenario reenactment In the mysql database (innodb engine) tab table has a createAt field of type datetime(6) precise to milliseconds.Of course we know that mysql’s date field is only accurate to the second level by default, if you want to millisecond subtlety can be defined as datetime(6), from version 5.6.4 onwards support business interface A through the ORM framework to deposit a record in the table, here createAt deposit2016-04-13 15:20:39.152