Re: Get the date time from Oracle date time stamp?????
Date: Fri, 05 Sep 2003 12:25:50 -0400
Message-ID: <3F58B90E.A71867CB_at_boatnerd.com.invalid>
Ric wrote:
Although this field is named Timestamp_seq, it's not really a timestamp,
>
> 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.45am (UK) on 05/09/2003 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)
Select * from mytable where NURS_TIMESTAMP =
(Select max(NURS_TIMESTAMP) from mytable)
A little more work and you can return the last n updated records.
HTH.
-- //-Walt // //Received on Fri Sep 05 2003 - 18:25:50 CEST