Re: [SQL] Primary keys: can they be alphanumerical? - Mailing list pgsql-sql

From Brett W. McCoy
Subject Re: [SQL] Primary keys: can they be alphanumerical?
Date
Msg-id Pine.BSI.3.91.980706092124.19636B-100000@access1.lan2wan.com
Whole thread Raw
In response to Primary keys: can they be alphanumerical?  (Stuart Rison <stuart@ludwig.ucl.ac.uk>)
Responses Re: [SQL] Primary keys: can they be alphanumerical?
List pgsql-sql
On Mon, 6 Jul 1998, Stuart Rison wrote:

> I would like to know what is the general concensus on having alphanumerical
> primary keys.

I use alphanumeric primary keys all the time.  I keep large databases
with FDA regulatory information in them, and the FDA assigned approval
number, usually a letter, followed by two digits indicating the year of
approval or the type of approval (like for a generic drug), followed by four
digits indicating the sequence of apporval for that year.  I use this
same key as a a foreign key for, say, patent records, which is usuallu a
one-to-many join.

Brett W. McCoy
                                         http://www.lan2wan.com/~bmccoy
-----------------------------------------------------------------------
"The Number of UNIX installations has grown to 10, with more expected."
   -- The UNIX Programmer's Manual, 2nd Edition, June, 1972


pgsql-sql by date:

Previous
From: Stuart Rison
Date:
Subject: How to split very long tables?
Next
From: "Brett W. McCoy"
Date:
Subject: Re: [SQL] How to split very long tables?