Received: from mail.intekom.com (mid-mail-01.intekom.com [196.25.69.44]) by postgresql.org (Postfix) with SMTP id 951C4476209 for ; Wed, 6 Mar 2002 14:33:45 -0500 (EST) Received: (qmail 30307 invoked from network); 6 Mar 2002 19:33:43 -0000 Received: from bnb53-01-p236.nt.saix.net (HELO hano) ([155.239.180.236]) (envelope-sender ) by intekom.com (qmail-ldap-1.03) with SMTP for ; 6 Mar 2002 19:33:43 -0000 X-vSMTP: intekom.com Message-ID: <002901c1c545$e0dd4f60$c80ba8c0@sabex.com> From: "Hano de la Rouviere" To: "Stephan Szabo" , "Daniel Ordobas Bortolas" Cc: References: <20020306101854.E8417-100000@megazone23.bigpanda.com> Subject: Re: simple problem Date: Wed, 6 Mar 2002 21:34:03 +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/136 X-Sequence-Number: 7016 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