Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Why Oracle don't have AUTO_INCREMENT as in MySQL
Galen Boyer wrote:
> On Mon, 23 Apr 2007, damorgan_at_psoug.org wrote:
> > But, this is why you are disingenuous. You said you didn't like the > SQLServer/Sybase autoincrementing column because of the way it is > implemented in those engines, not the way it is used. > > Or, are you saying that having a surrogate key is a problem. If not, > then what is the issue with autoincrementing?
I prefer natural keys to surrogate keys but they are not always available or the best solution to the problem so surrogate keys have their place.
The problem with autoincrementing, to repeat myself, is lack of flexibility. Consider the implications of autoincrementing on RAC and Data Guard or numerous other Oracle technologies not implemented in those other products. It could be a potential nightmare keeping things in synch.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Wed Apr 25 2007 - 23:01:46 CDT