X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 04C2752888 for ; Thu, 19 May 2005 04:00:21 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 15201-10 for ; Thu, 19 May 2005 07:00:18 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 1E21552802 for ; Thu, 19 May 2005 04:00:16 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id A4D0E40D75A; Thu, 19 May 2005 08:00:18 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id E469415EA6; Thu, 19 May 2005 07:55:45 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13739-07; Thu, 19 May 2005 07:55:45 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 71E2F15EA5; Thu, 19 May 2005 07:55:45 +0100 (BST) Message-ID: <428C3871.8020201@archonet.com> Date: Thu, 19 May 2005 07:55:45 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: bandeng Cc: pgsql-sql@postgresql.org Subject: Re: postgre variable References: <3817e22905051819111a04c2fe@mail.gmail.com> In-Reply-To: <3817e22905051819111a04c2fe@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.053 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200505/159 X-Sequence-Number: 21472 bandeng wrote: > hello all, > > i want to make dynamic sql query like this > > select * from tb_cust where name='erick' and age='20' > > to > > select * from tb_cust $1 > > i have tried but error comeup You have tried what? How? What error did you get? -- Richard Huxton Archonet Ltd