Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Date Time From Oracle DateTimeStamp Gen integer??

Status
Not open for further replies.

Namshub

Programmer
Joined
Oct 10, 2001
Messages
3
Location
GB
I am using crystal reports to attempt to extract information from this database but I need to know which records were last updated. I have managed to find a field in Oracle and its value is based on a trigger function as shown below

begin

select TIMESTAMP_SEQ.nextval into :new.NURS_TIMESTAMP from dual;

end;

This at 9.45 on 05/09/2003 (UK) generated a value of 5,048,868

My main expertise is in SQL Server, my question is can I reverse engineer this value to calculate the time? Or is it like an identity field in SQL server (i.e. An automatic incremental counter)

I would really appreciate any help or pointers to some good web sources.
 
What you are seeing is an incremented integer that has no linkage to an actual timestamp.
 
If you need current date/time use sysdate function.

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top