From: Stéphane FILLON <fillons@offratel.nc>
To: pgsql-sql@postgresql.org
To: pgsql-novice@postgresql.org
Subject: Tr: UNIQUE
Date: Sun, 1 Aug 1999 09:12:25 +1100
Message-ID: <001f01bedba1$c5e52920$c40a8280@portable> (raw)
>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
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: fillons@offratel.nc, pgsql-novice@postgresql.org
Subject: Re: Tr: UNIQUE
In-Reply-To: <001f01bedba1$c5e52920$c40a8280@portable>
References: <001f01bedba1$c5e52920$c40a8280@portable>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox