Using Oracle to_date function for date string with milliseconds

前端 未结 5 467
自闭症患者
自闭症患者 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:45

    You can try this format SS.FF for milliseconds:

    to_timestamp(table_1.date_col,'DD-Mon-RR HH24:MI:SS.FF')

    For more details:
    https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions193.htm

提交回复
热议问题