Re: Identity key?
Date: Tue, 9 Jan 2001 15:08:36 -0500
Message-ID: <Pine.GSO.4.31.0101091501380.20487-100000_at_shell1>
Hello Joe, its been a while ....
I recently began a new position in an Informix shop. Informix has a "serial" data type which "stores a sequential integer assigned automatically by the database..." which would seem to be sort of like the "IDENTITY" data type under discussion here.? Almost every table here has a serial column used to uniquely identify rows instead of a "real" primary key which, in the states example, would be the state_code, right?
(They also make extensive use of the ROWID which is an entirely different topic ...)
On Mon, 8 Jan 2001, Joe Celko wrote:
>
> >> Then in the example
> CREATE TABLE US_States
> (state_id IDENTITY,
> state_code CHAR(2) NOT NULL PRIMARY KEY,
> state_name VARCHAR(15) NOT NULL UNIQUE);
>
> state_id would be an artificial key? <<
>
Thank you,
Lucky
Lucky Leavell Phone: (800) 481-2393 or (812) 366-4066 UniXpress - Your Source for SCO FAX: (888) 231-9640 or (812) 366-3618 1560 Zoar Church Road NE Email: lucky_at_UniXpress.com Corydon, IN 47112-7374 WWW Home Page: http://www.UniXpress.comReceived on Tue Jan 09 2001 - 21:08:36 CET