Subject | Re: [firebird-support] Question select in Stored procs |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2006-01-16T05:44:01Z |
On 14 Jan 2006 at 10:42, Erik De Laet wrote:
1) CASE expression;
2) Select both fields into local variables and then use IF to assign
one of them to the returning parameter;
3) EXECUTE STATEMENT.
--
SY, Dimitry Sibiryakov.
>I want to select different fields of a tableYes. Three solution (from the best to the worst):
>depending on a parameter to the stored procedure.
>
>Is this possible ?
1) CASE expression;
2) Select both fields into local variables and then use IF to assign
one of them to the returning parameter;
3) EXECUTE STATEMENT.
--
SY, Dimitry Sibiryakov.