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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Timestamp of a record

Re: Timestamp of a record

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Thu, 11 Dec 2003 13:14:03 -0800
Message-ID: <1071177149.484884@yasure>


Jeff Smith wrote:

> ALTER TABLE <table_name>
>

>>ADD <column_name> TIMESTAMP DEFAULT SYSTIMESTAMP;

>
>
>
> Is this something new? ... I am using 8.1.7
>
> SQL> ALTER TABLE eraseme ADD (newcol1 TIMESTAMP DEFAULT SYSTIMESTAMP);
> ALTER TABLE eraseme ADD (newcol1 TIMESTAMP DEFAULT SYSTIMESTAMP)
> *
> ERROR at line 1:
> ORA-00984: column not allowed here
>
> I use:
> alter table eraseme add( newcol date default sysdate)
> Table altered.

Welome to 9i. I'd suggest you get yourself a copy, even if at home to catch up. With 10g the changes will be very profound: 9i will get you part of the way there.

-- 
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 Thu Dec 11 2003 - 15:14:03 CST

Original text of this message

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