How to insert time 2009-09-22 18:09:37.881 in MYSQL My column type is DateTime

前端 未结 5 1338
野趣味
野趣味 2021-01-06 00:57

How to insert time 2009-09-22 18:09:37.881 in mysql. Actually I can insert and retrieve the time 2009-09-22 18:09:37 in mysql but whenever I am try

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-06 01:13

    All time types in MySQL have only a precision of seconds

    [...] microseconds cannot be stored into a column of any temporal data type. Any microseconds part is discarded.

    You'll need some workaround.

提交回复
热议问题