I don't think you can, Oracle's date functionality only holds dates to a second prescion. if you want to get a time in milliseconds (for timing purposes) then you can use the view V$TIMER which has 1 column called HSECS. this holds seconds to 3dp. alternatively you can use DBMS_UTILITY.GET_TIME which returns the same values. This time is based on the number of seconds since some O/S specific epoch and rolls over every 4 days or so. However I'm not sure this is what you want.
Don't do what I did and use to_char(sysdate,'SSSS') as this isn't milliseconds (as I thought) but the number of seconds since midnight...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.