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: Default value from sequence

Re: Default value from sequence

From: Kingsley Sawyers <no_at_way.im.telling>
Date: Thu, 29 Jul 1999 12:26:07 +0100
Message-ID: <7npdm6$j19$1@lure.pipex.net>


You'll have to use a trigger on xyz table inserts.

Erkki Arus wrote in message <7np8pf$dsu$1_at_keeks.cyber.ee>...
> Hi,
>
>I'm a simple question: i have a table xyz where is column ID and it is
>primary key. How i can set default value from sequence MYSEQ for this
>column? The line in "ID NUMBER DEFAULT myseq.nextval" in CREATE TABLE or
>ALTER TABLE statement is not allowed.
>
>Thanks.
>
>Erkki Arus
>e-mail: aphex_at_spin.ee
>http://hobbit.spin.ee/~aphex/
>
Received on Thu Jul 29 1999 - 06:26:07 CDT

Original text of this message

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