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 -> GUID as primary key

GUID as primary key

From: Andreas Mosmann <keineemails_at_gmx.de>
Date: Mon, 20 Jun 2005 13:52:03 +0200
Message-ID: <1119268323@user.newsoffice.de>


Hi,

<Oracle 9.2i>

I got 2 questions:

Is there a package (or something else) where I can get a GUID from the oracle system? (something like SELECT DBMS_GUID.GenerateGUID FROM DUAL) We want to use GUID for all Rows in the Database. We can do this by the application, but sometimes (Triggers etc.) it would be useful to generate a GUID in the database directly.

You can give a column in a table a default value. How can I give oracle a function instead of a plain value so that this function is called everytime a new row is generated?

Thanks

Andreas

-- 
wenn email, dann AndreasMosmann <bei> web <punkt> de
Received on Mon Jun 20 2005 - 06:52:03 CDT

Original text of this message

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