pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hano de la Rouviere <hano@linutech.co.za>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Daniel Ordobas Bortolas <bortolas@inf.UFSM.br>
Cc: pgsql-sql@postgresql.org
Subject: Re: simple problem
Date: Wed, 6 Mar 2002 21:34:03 +0200
Message-ID: <002901c1c545$e0dd4f60$c80ba8c0@sabex.com> (raw)
References: <20020306101854.E8417-100000@megazone23.bigpanda.com>

try without the "  on ''autor''

where m_name = autor;

http://www.pgexplorer.com
PostgreSQL GUI Tool

----- Original Message -----
From: "Stephan Szabo" <sszabo@megazone23.bigpanda.com>
To: "Daniel Ordobas Bortolas" <bortolas@inf.UFSM.br>
Cc: <pgsql-sql@postgresql.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@postgresql.org so that your
> message can get through to the mailing list cleanly




view thread (10+ messages)  latest in thread

Message-ID: <002901c1c545$e0dd4f60$c80ba8c0@sabex.com>
Permalink:  ../002901c1c545$e0dd4f60$c80ba8c0@sabex.com/
Also on:    postgresql.org/message-id/002901c1c545$e0dd4f60$c80ba8c0@sabex.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: hano@linutech.co.za, sszabo@megazone23.bigpanda.com, bortolas@inf.UFSM.br
  Subject: Re: simple problem
  In-Reply-To: <002901c1c545$e0dd4f60$c80ba8c0@sabex.com>

* 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