Tr: UNIQUE

From: Stéphane FILLON <fillons(at)offratel(dot)nc>
To: "pgsql general" <pgsql-general(at)postgresql(dot)org>
Subject: Tr: UNIQUE
Date: 1999-08-04 17:51:17
Message-ID: 000401bedfdb$4116d5c0$c40a8280@portable
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


-----Message d'origine-----
De : Stéphane FILLON <fillons(at)offratel(dot)nc>
À : pgsql-sql(at)postgresql(dot)org <pgsql-sql(at)postgresql(dot)org>;
pgsql-novice(at)postgresql(dot)org <pgsql-novice(at)postgresql(dot)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
>>
>>
>

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Daniel Lundin 1999-08-04 17:51:52 Re: [GENERAL] ElephantWear Now Available...
Previous Message Stéphane FILLON 1999-08-04 17:50:47 Tr: CHECK CONSTRAINT