What does the number 6 in the MySQL DATETIME field mean?
P粉147747637
P粉147747637 2023-08-09 14:34:58
<p>I can't find it in DATETIME, but usually I define it as <code>DATETIME</code> without precision specifier. </p> <p>When running Hibernate automatic DDL update, I noticed that it changes the table to <code>DATETIME(6)</code></p>
P粉147747637
P粉147747637

reply all(2)
P粉714844743

This is explained in detail on the next page of the table of contents (emphasis mine):

  • So DATETIME is equivalent to DATETIME(0).
  • And DATETIME(6) is not equivalent to DATETIME or DATETIME(0).
Popular topics
More>
Latest downloads
More>
web effects
Website source code
Website materials
Front end template
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!