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 column value of MAX +1 of column - possible in Oracle 9i?

Re: Default column value of MAX +1 of column - possible in Oracle 9i?

From: <bdbafh_at_gmail.com>
Date: 24 Mar 2005 10:54:47 -0800
Message-ID: <1111690487.359488.281850@g14g2000cwa.googlegroups.com>


its simple only because you think of it in terms of a single user system.
I believe that you need to read the concepts guide (http://tahiti.oracle.com)and check out the AskTom site at http://asktom.oracle.com.
You need to understand concurrency and transaction control.

How could multiple users possibly have transactions against this table and not have a race condition or collision?

single user MS Access database, your approach select max(ID) + 1 sounds adequate.
multi-user database ... use the sequence/insert trigger approach, that's what its there for.

good luck.

-bdbafh Received on Thu Mar 24 2005 - 12:54:47 CST

Original text of this message

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