P粉3478048962023-08-10 11:04:55
It represents the precision of millisecond storage.
DATETIME(6) means that decimal milliseconds are stored to 6 decimal places. For example, 1970-01-01 17:51:04.789463.
The number must be in the range between 0 and 6.
P粉7148447432023-08-10 00:53:18
This is explained in detail on the next page of the table of contents (emphasis mine):
DATETIME
is equivalent to DATETIME(0)
. DATETIME(6)
is not equivalent to DATETIME
or DATETIME(0)
.