Tr: UNIQUE - Mailing list pgsql-general

From Stéphane FILLON
Subject Tr: UNIQUE
Date
Msg-id 000401bedfdb$4116d5c0$c40a8280@portable
Whole thread Raw
List pgsql-general
-----Message d'origine-----
De : Stéphane FILLON <fillons@offratel.nc>
À : pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>;
pgsql-novice@postgresql.org <pgsql-novice@postgresql.org>
Date : dimanche 1 août 1999 09:12
Objet : Tr: UNIQUE


>>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-general by date:

Previous
From: ghoffman@ucsd.edu (Gary Hoffman)
Date:
Subject: Selecting duplicates
Next
From: "Stéphane FILLON"
Date:
Subject: Tr: DUMP database for sample