Re: [SQL] postgre variable

2005-05-19 Thread KÖPFERL Robert
|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 So

Re: [SQL] postgre variable

2005-05-19 Thread Volkan YAZICI
Hi, On 5/19/05, bandeng <[EMAIL PROTECTED]> wrote: > 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 I think there's a confusion about the usage of parameters like $1, $2

Re: [SQL] postgre variable

2005-05-19 Thread Richard Huxton
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 ---(end o

[SQL] postgre variable

2005-05-18 Thread bandeng
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 ---