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

后端 未结 3 1416
梦毁少年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 15:54

    As RC says, the DATE type only supports a granularity down to the second.

    If converting to TIMESTAMP is truly not an option then how about the addition of another numerical column that just holds the milliseconds?

    This option would be more cumbersome to deal with than a TIMESTAMP column but it could be workable if converting the type is not possible.

提交回复
热议问题