Re: surrogate key or not?

Поиск
Список
Период
Сортировка
От Kenneth Gonsalves
Тема Re: surrogate key or not?
Дата
Msg-id 0407231327461F.01150@thenilgiris.com
обсуждение исходный текст
Ответ на Re: surrogate key or not?  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Ответы Re: surrogate key or not?
Re: surrogate key or not?
Список pgsql-sql
On Friday 23 July 2004 12:27 pm, Karsten Hilbert wrote:

> BTW, our full schema is here:
>
> http://www.hherb.com/gnumed/schema/

i was looking at your schema. i'm not a database pro, but in master tables i 
see you have made the serial id as the primary key. i do it this way:

id    serial unique
name    varchar(25) not null
primary key is name - after all, you are going to search this on name arent 
you? or is there some advantage in doing it your way?

also, how did you get that neatly formatted output of the schema?
-- 
regards
kg

http://www.onlineindianhotels.net - hotel bookings reservations in over 4600 
hotels in India
http://www.ootygolfclub.org


В списке pgsql-sql по дате отправления:

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: surrogate key or not?
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: surrogate key or not?