Received: from homer.websystems.co.za (unknown [196.25.70.70]) by postgresql.org (Postfix) with ESMTP id 3EEAE475892 for ; Wed, 6 Mar 2002 15:13:34 -0500 (EST) Received: from hano (bnb53-01-p236.nt.saix.net [155.239.180.236]) by homer.websystems.co.za (8.11.0/8.11.0) with SMTP id g26KJBI05132 for ; Wed, 6 Mar 2002 22:19:11 +0200 Message-ID: <005501c1c54b$6bddc680$c80ba8c0@sabex.com> From: "PG Explorer" To: References: <20020306101854.E8417-100000@megazone23.bigpanda.com> Subject: Re: simple problem Date: Wed, 6 Mar 2002 22:13:45 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200203/71 X-Sequence-Number: 6953 try without the " on ''autor'' where m_name = autor; http://www.pgexplorer.com PostgreSQL GUI Tool ----- Original Message ----- From: "Stephan Szabo" To: "Daniel Ordobas Bortolas" Cc: 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