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: Create Table Key

Re: Create Table Key

From: Daniel A. Morgan <Daniel.Morgan_at_attws.com>
Date: Thu, 02 Aug 2001 12:03:19 -0700
Message-ID: <3B69A3F7.B2FA6942@attws.com>

Vladimir Tsvetkov wrote:

> Hallo,
> I want to create the new records in my table. Must I manage self the UUID
> Column in my table or I can create the constraints, wich automate the
> process of UUID creation??
>
> Regards
> Vladimir Tsvetkov

I have no idea what UUID column is and I doubt anyone else will though we can probably all guess.

You should not populate it with a trigger but rather create a SEQUENCE and use that sequence in your insert statement like this:

INSERT INTO mytable
(uuid, field2)
VALUES
(uuidseq.NEXTVAL, somevalue);

Daniel A. Morgan Received on Thu Aug 02 2001 - 14:03:19 CDT

Original text of this message

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