From: | "Jaime Casanova" <systemguards(at)gmail(dot)com> |
---|---|
To: | "Manso Gomez, Ramon" <rmgomez(at)indra(dot)es> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: dinamic sql |
Date: | 2006-08-29 12:33:42 |
Message-ID: | c2d9e70e0608290533m3cb823d4s3be0455c2f2c4647@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On 8/29/06, Manso Gomez, Ramon <rmgomez(at)indra(dot)es> wrote:
>
> if(user_Input = 'a')
> l_query := l_query||a_from_clause ||'where ename in '||user_Input
> else
> if(user_Input = 'b')
> l_query := l_query||b_from_clause||'where ename in '||user_Input
>
> OPEN csr FOR l_query;
>
l_query := l_query || a_from_clause
|| 'where ename in (' ||
quote_literal(user_input) || ')'
--
regards,
Jaime Casanova
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook
From | Date | Subject | |
---|---|---|---|
Next Message | Aaron Bono | 2006-08-29 14:28:42 | Re: Performance Problem with sub-select using array |
Previous Message | Michael Fuhr | 2006-08-29 10:38:58 | Re: Trigger on Insert to Update only newly inserted fields? |