Re: naming a primary key possible?

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: naming a primary key possible?
Дата
Msg-id 4C33DFD1-E012-43FB-991C-A84F0D9E427A@seespotcode.net
обсуждение исходный текст
Ответ на naming a primary key possible?  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
Список pgsql-general
On Aug 27, 2007, at 20:50 , Ow Mun Heng wrote:

> Is it possible to name a primary key (composite) primary key rather
> than
> have pg default to table_name_pkey??
>
> I tried something like
>
> primary key pkey_table_short_form_name (a,b,c)

create table tab (col text, constraint col_is_pkey primary key (col));

http://www.postgresql.org/docs/8.2/interactive/sql-createtable.html

Michael Glaesemann
grzm seespotcode net



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

Предыдущее
От: Erik Jones
Дата:
Сообщение: Re: naming a primary key possible?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Tables dissapearing