Tr: UNIQUE

Поиск
Список
Период
Сортировка
От Stéphane FILLON
Тема Tr: UNIQUE
Дата
Msg-id 001f01bedba1$c5e52920$c40a8280@portable
обсуждение исходный текст
Список pgsql-sql
>Hi !
>
>I have a table with a primary key id to have a unique tuple and
>
>I want to check that (fk_acount + code) is unique.
>
>I don't know how to create this CHECK CONSTRAINT
>
>create table amount(
>  id int4 constraint pk_amount primary key,
>  fk_acount int4 not null,
>  code char(3) not null
>);
>
>Thanks in advance.
>
>Stephane
>
>



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] Outer Joins, Foreign keys, subselects
Следующее
От: "Stéphane FILLON"
Дата:
Сообщение: Tr: DUMP database for sample