Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在做:
CREATE TABLE foo (d DATETIME); INSERT INTO foo VALUES('2013-10-09 10:58:43.159'); SELECT d FROM foo;
并得到
2013-10-09 10:58:43
我怎样才能DATETIME在毫秒内恢复原状?
DATETIME
MySQL 5.6.4 及更高版本支持这一点。利用
CREATE TABLE foo (d DATETIME(6));