Re: [SQL] Primary keys: can they be alphanumerical?

Поиск
Список
Период
Сортировка
От Brett W. McCoy
Тема Re: [SQL] Primary keys: can they be alphanumerical?
Дата
Msg-id Pine.BSI.3.91.980706092124.19636B-100000@access1.lan2wan.com
обсуждение исходный текст
Ответ на Primary keys: can they be alphanumerical?  (Stuart Rison <stuart@ludwig.ucl.ac.uk>)
Ответы Re: [SQL] Primary keys: can they be alphanumerical?  (Herouth Maoz <herouth@oumail.openu.ac.il>)
Список 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 по дате отправления:

Предыдущее
От: Stuart Rison
Дата:
Сообщение: How to split very long tables?
Следующее
От: "Brett W. McCoy"
Дата:
Сообщение: Re: [SQL] How to split very long tables?