sql - Difference Between Timestamps in Milliseconds in Oracle -


i have table test1 , have 1 column doj timestamp datatype having few records shown below. here need difference im milliseconds between doj , systimestamp.

select doj test1;  doj  ----------------------------  21-mar-14 09.25.34.514526000  21-mar-14 09.25.34.520345000  22-mar-14 09.25.34.523144000  22-mar-14 09.25.34.527770000  23-mar-14 09.25.34.532482000  23-mar-14 09.25.34.535603000  24-mar-14 09.25.34.538556000  24-mar-14 09.25.34.541729000   select systimestamp dual;  systimestamp  --------------  24-mar-14 09.48.10.251556000 +00:00  

can 1 please me this.

select   extract(second systimestamp - doj) * 1000   test1; 

Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -