From: | "PG Explorer" <pgmail(at)pgexplorer(dot)com> |
---|---|
To: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: simple problem |
Date: | 2002-03-06 20:13:45 |
Message-ID: | 005501c1c54b$6bddc680$c80ba8c0@sabex.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
try without the " on ''autor''
where m_name = autor;
http://www.pgexplorer.com
PostgreSQL GUI Tool
----- Original Message -----
From: "Stephan Szabo" <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: "Daniel Ordobas Bortolas" <bortolas(at)inf(dot)UFSM(dot)br>
Cc: <pgsql-sql(at)postgresql(dot)org>
Sent: Wednesday, March 06, 2002 8:20 PM
Subject: Re: [SQL] simple problem
> 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.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2002-03-06 20:19:03 | Fun with SQL |
Previous Message | Tom Lane | 2002-03-06 20:06:39 | Re: simple problem |