| From: | "Brett W(dot) McCoy" <bmccoy(at)lan2wan(dot)com> |
|---|---|
| To: | Stuart Rison <stuart(at)ludwig(dot)ucl(dot)ac(dot)uk> |
| Cc: | pgsql-sql(at)postgreSQL(dot)org |
| Subject: | Re: [SQL] Primary keys: can they be alphanumerical? |
| Date: | 1998-07-06 13:25:33 |
| Message-ID: | Pine.BSI.3.91.980706092124.19636B-100000@access1.lan2wan.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Herouth Maoz | 1998-07-06 13:38:53 | Re: [SQL] Primary keys: can they be alphanumerical? |
| Previous Message | Stuart Rison | 1998-07-06 12:53:36 | How to split very long tables? |