Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle9i TIMESTAMP - an internal look

Re: Oracle9i TIMESTAMP - an internal look

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Tue, 06 Jan 2004 05:59:37 -0800
Message-ID: <1073397490.974825@yasure>


Hillel Eilat wrote:

> Hi
>
> I do not manage to find a reference as to how the TIMESTAMP datatype is
> represented internally.
>
> For the "oldies" I have:
>
> type OCITime = packed record
> OCITimeHH: ub1;
> OCITimeMM: ub1;
> OCITimeSS: ub1;
> end;
> type OCIDate = packed record
> OCIDateYYYY: sb2;
> OCIDateMM: ub1;
> OCIDateDD: ub1;
> OCIDateTime: OCITime;
> end;
>
> Now - how about the the newcomers, especially TIMESTAMP:
> Where is the fractional portion reside at? The scaling factor? etc...
>
> Your assistance will be appreciated.
>
> Thanx
>
> Hillel.
>
>

SELECT dump(timestamp_field) FROM table_name;

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Tue Jan 06 2004 - 07:59:37 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US