From: | ocie(at)paracel(dot)com |
---|---|
To: | goran(at)bs1(dot)bildbasen(dot)kiruna(dot)se (Goran Thyni) |
Cc: | dlorenso(at)afai(dot)com, pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] AUTO_INCREMENT suggestion |
Date: | 1998-03-06 20:24:26 |
Message-ID: | 9803062024.AA26749@dolomite.paracel.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Goran Thyni wrote:
>
> D. Dante Lorenso wrote:
> >
> > To aid those of us that don't want to use sequences, can we add a
> > feature to 6.4 that allows the use of an AUTO_INCREMENT statement
> > when defining tables? MySQL does this, and I like it. It resembles
> > the Autonumber feature in Access as well.
> >
> > create table tblFirm (
> > FirmID int PRIMARY KEY AUTO_INCREMENT,
> > FirmTypeID int,
> > FirmName varchar(64) NOT NULL,
> > FirmAlpha char(20) NOT NULL UNIQUE,
> > FirmURL varchar(64),
> > FirmEmail varchar(64)
> > );
> >
> > Just yet another suggestion.
> >
>
> Informix calls something like this SERIAL type, like:
>
> create table tblFirm (
> FirmID SERIAL PRIMARY KEY,
> FirmTypeID int,
> FirmName varchar(64) NOT NULL,
> FirmAlpha char(20) NOT NULL UNIQUE,
> FirmURL varchar(64),
> FirmEmail varchar(64)
> );
>
> Don't know if that is standrd or extension.
Sybase calls this an identity. I don't think there is a standard name
for this, sigh.
Ocie
From | Date | Subject | |
---|---|---|---|
Next Message | Brett McCormick | 1998-03-07 00:05:59 | dec alpha/64bit stuff |
Previous Message | gold bag | 1998-03-06 20:11:05 | SQL Test suite V6.0 is here -- |