Using Oracle to_date function for date string with milliseconds

前端 未结 5 476
自闭症患者
自闭症患者 2020-12-08 09:00

I have to perform some inserts into an Oracle DB. I have some dates in the following format

\'23.12.2011 13:01:001\'

Following the documen

5条回答
  •  悲&欢浪女
    2020-12-08 09:49

    TO_DATE supports conversion to DATE datatype, which doesn't support milliseconds. If you want millisecond support in Oracle, you should look at TIMESTAMP datatype and TO_TIMESTAMP function.

    Hope that helps.

提交回复
热议问题