Subject | Re: Stored procedure question - can this be done? |
---|---|
Author | Adam |
Post date | 2006-07-14T02:58:40Z |
--- In firebird-support@yahoogroups.com, <myles@...> wrote:
You are limited in that you have to then do your own casting for
other parameters though.
Adam
>SELECT
> I want to be able to programmatically change the sorted order of
> statements executed in a stored procedure, based on an input valuepassed to
> the SP. Without creating a mound of IF ELSE statements, is there away to
> somehow have the statement:INPUT
>
> ORDER BY <column> ASCENDING
>
> Be represented as:
>
> ORDER BY <column> <direction>
>
> By passing the column and direction values as references to the
> variables to the SP?Yes with EXECUTE STATEMENT.
You are limited in that you have to then do your own casting for
other parameters though.
Adam