Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: how to define a pseudo auto value column in oracle?
> Hated by who exactly? Joe Celko has made it more than clear in numerous
> communications that those "beloved" identity columns don't even belong
> in a relational database. And exactly what is it about typing:
> CREATE SEQUENCE x;
> that is so hard on your fingers?
>
> Or is it using the sequence in your insert statement that causes you so
> much pain?
>
> INSERT INTO t VALUES (x.NEXTVAL);
You don't understand the problem. The problem is, that sequences don't allow database independent programming (by means of ADO). Most of database types do have the datatype Autovalue. Oracle don't support this datatype.
Robert Received on Thu Feb 10 2005 - 06:49:33 CST