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: Why Oracle don't have AUTO_INCREMENT as in MySQL

Re: Why Oracle don't have AUTO_INCREMENT as in MySQL

From: DA Morgan <damorgan_at_psoug.org>
Date: Sat, 21 Apr 2007 12:43:40 -0700
Message-ID: <1177184620.332644@bubbleator.drizzle.com>


Galen Boyer wrote:

> I was asking how sequences aren't considered brain-damaged. They are
> used to create a surrogate key just like autoincrementing columns, and
> the autoincrementing surrogate key is what I'm assuming what you mean by
> brain damaged.

Not at all. Surrogate keys have their place in the real world.

What I don't like is forced serialization of autoincrementing. What I don't like is typing the surrogate to a single object. The Oracle sequence is a far more intelligent way to solve the problem.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Sat Apr 21 2007 - 14:43:40 CDT

Original text of this message

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