java - Storing timestamp with milliseconds in Oracle -


i know how retrieve timestamp milliseconds:

to_char(systimestamp ,'yyyy-mm-dd hh24:mi:ss,ff9') 

can please advise, timestamp data type sufficient store date milliseconds or can use varchar2? trying insert value java.

yes, timestamp allows precision down nanoseconds if want it.

if need milliseconds, want timestamp(3) column.

use java.sql.timestamp (which again goes down nanoseconds, if need to) on java side. note should avoid doing to_char conversion if possible - perform string conversions need client-side; fetch data timestamp, , send timestamp.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -