Received: from verde.onda.com.br (verde.onda.com.br [200.195.192.10]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eA5KgSs58085 for ; Sun, 5 Nov 2000 15:42:29 -0500 (EST) (envelope-from cdallacosta@bigfoot.com) Received: from terrificus (cmcta002p161.onda.com.br [200.195.205.161]) by verde.onda.com.br (8.8.8/8.8.8) with SMTP id SAA16644 for ; Sun, 5 Nov 2000 18:42:14 -0200 (EDT) Message-ID: <003401c04771$cf180bb0$02ffa8c0@terrificus> From: "=?iso-8859-1?Q?Crist=F3v=E3o_B._B._Dalla_Costa?=" To: "pgsql-sql" References: Subject: Re: Conditional SQL query Date: Sun, 5 Nov 2000 18:46:07 -0300 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: 200011/35 X-Sequence-Number: 66 > > insert into table select ... where col1 = 'value' > > > > this is working but I am inserting values directly and not by select. eg: > > insert into table values(x,x,x) > and not > insert into table select * from table2 > insert into table select (x, x, x) where col1 = 'value'