pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: bandeng <postgredb@gmail.com>
To: pgsql-sql@postgresql.org
Subject: postgre variable
Date: Thu, 19 May 2005 10:11:13 +0800
Message-ID: <3817e22905051819111a04c2fe@mail.gmail.com> (raw)

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

any suggestion?

thanks
Ricky
-- 
Gutten Aben Sugeng Sonten, Jangane Kurang Santen
bandeng....................



view thread (4+ messages)  latest in thread

Message-ID: <3817e22905051819111a04c2fe@mail.gmail.com>
Permalink:  ../3817e22905051819111a04c2fe@mail.gmail.com/
Also on:    postgresql.org/message-id/3817e22905051819111a04c2fe@mail.gmail.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: postgredb@gmail.com
  Subject: Re: postgre variable
  In-Reply-To: <3817e22905051819111a04c2fe@mail.gmail.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