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: Automatic random number on row creation

Re: Automatic random number on row creation

From: Mladen Gogala <gogala_at_sbcglobal.net>
Date: Thu, 29 Dec 2005 22:39:06 GMT
Message-Id: <pan.2005.12.29.22.39.06.729904@sbcglobal.net>


On Thu, 29 Dec 2005 13:05:41 -0500, Mark C. Stock wrote:

> looks like concatenating a sequence or just trapping UK violation would
> finish the story

Concatenating a sequence would be far better because handling would require a trap handler that would roll the transaction back, generate new key and re-execute the insert. That would give you unpredictable transaction times and would complicate the matter enormously.

-- 
http://www.mgogala.com
Received on Thu Dec 29 2005 - 16:39:06 CST

Original text of this message

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