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: one more newbie ? - autonumber?

Re: one more newbie ? - autonumber?

From: Daniel Morgan <dmorgan_at_exesolutions.com>
Date: Fri, 31 May 2002 15:20:15 GMT
Message-ID: <3CF794A9.3FE7D09D@exesolutions.com>


jbaldner wrote:

> Perform a DMAX function on the field in question, then add 1 to
> that value
>
> --
> Posted via dBforums
> http://dbforums.com

This is no way to number things in Oracle as it forces serialization. Performance and scalability takes a huge hit.

This should be done with a sequence and, likely, a before insert trigger.

Daniel Morgan Received on Fri May 31 2002 - 10:20:15 CDT

Original text of this message

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