Oracle - Fetch date/time in milliseconds from DATE datatype field

后端 未结 3 1439
梦毁少年i
梦毁少年i 2021-01-13 15:39

I have last_update_date column defined as DATE field

I want to get time in milliseconds.

Currently I have:

TO_CHAR         


        
3条回答
  •  感动是毒
    2021-01-13 16:05

    DATE fields on Oracle only store the data down to a second so there is no way to provide anything more precise than that. If you want more precision, you must use another type such as TIMESTAMP.

    Here is a link to another SO question regarding Oracle date and time precision.

提交回复
热议问题