Re: postgre variable

From: KÖPFERL Robert <robert(dot)koepferl(at)sonorys(dot)at>
To: "'bandeng'" <postgredb(at)gmail(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: postgre variable
Date: 2005-05-19 09:11:48
Message-ID: ED4E30DD9C43D5118DFB00508BBBA76EB16701@neptun.sonorys.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

You should considder a variation as Volkan suggested.

Otherwise the EXECUTE command might be what you are looking for.
Execute a sql made up in a string

|-----Original Message-----
|From: bandeng [mailto:postgredb(at)gmail(dot)com]
|Sent: Donnerstag, 19. Mai 2005 04:11
|To: pgsql-sql(at)postgresql(dot)org
|Subject: [SQL] postgre variable
|
|
|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....................
|
|---------------------------(end of
|broadcast)---------------------------
|TIP 9: the planner will ignore your desire to choose an index
|scan if your
| joining column's datatypes do not match
|

Browse pgsql-sql by date

  From Date Subject
Next Message Mark Fenbers 2005-05-19 19:17:07 Aggregate Functions Template
Previous Message KÖPFERL Robert 2005-05-19 07:53:10 Re: Meaning of ERROR: tuple concurrently updated