Re: simple problem - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: simple problem
Date
Msg-id 20020306101854.E8417-100000@megazone23.bigpanda.com
Whole thread Raw
In response to simple problem  ("Daniel Ordobas Bortolas" <bortolas@inf.UFSM.br>)
List pgsql-sql
On Wed, 6 Mar 2002, Daniel Ordobas Bortolas wrote:

>
> Hello!
> I am having problems creating a table and i'd like some help.
>
> -->create table loco( id_loco int4 not null, primary key (id_loco), check(
> (select count(*) from loco ) < 3 ) );

IIRC, check constraints with subselects are not currently supported.
You can make triggers that do the check for you.




pgsql-sql by date:

Previous
From: Frank Joerdens
Date:
Subject: SELECT currval within a transaction
Next
From: Stephan Szabo
Date:
Subject: Re: SELECT currval within a transaction