Link to home
Start Free TrialLog in
Avatar of _Esam
_Esam

asked on

Oracle Timestamp size ?

Hi,
I have an Oracle (9.2.0) table column that is of type Timestamp...

The DBA declared it as:

ColumnName      Type
CREATETMS       Timestamp(6)

My question is: what does this mean?     Timestamp(6)  ?
Give me an example insert value to insert a value to this column??? (should work)
I am having problem updating this Timestamp with new values from my java program....


Thanks.
_Esam.
ASKER CERTIFIED SOLUTION
Avatar of pennnn
pennnn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Acton Wang
TIMESTAMP [(<precision>)]

The TIMESTAMP datatype stores date and time information with fractional
seconds precision. The only difference between the DATE and TIMESTAMP
datatypes is the ability to store fractional seconds up to a precision of nine digits.
The default precision is 6 and can range from 0 to 9.
Avatar of _Esam
_Esam

ASKER

>insert into my_table (timestamp_column) values (timestamp'1997-01-31 09:26:50.124');

Is this part ok:   (timestamp'1997-01-31 09:26:50.124'); ?

Should it just be:   ('1997-01-31 09:26:50.124');


_Esam
Avatar of _Esam

ASKER

Need an example of how to insert a darn timestamp>>>:)


Thax.
_esam.
Avatar of _Esam

ASKER

Sorry, I got it working now...:)

Thanks

_Esam..