Re: postgre variable

Поиск
Список
Период
Сортировка
От KÖPFERL Robert
Тема Re: postgre variable
Дата
Msg-id ED4E30DD9C43D5118DFB00508BBBA76EB16701@neptun.sonorys.at
обсуждение исходный текст
Ответ на postgre variable  (bandeng <postgredb@gmail.com>)
Список 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@gmail.com]
|Sent: Donnerstag, 19. Mai 2005 04:11
|To: pgsql-sql@postgresql.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
|


В списке pgsql-sql по дате отправления:

Предыдущее
От: KÖPFERL Robert
Дата:
Сообщение: Re: Meaning of ERROR: tuple concurrently updated
Следующее
От: "Mark Fenbers"
Дата:
Сообщение: Aggregate Functions Template