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));