Subject | Re: Using "if" |
---|---|
Author | Alexander V.Nevsky |
Post date | 2004-03-27T13:02:03Z |
--- In firebird-support@yahoogroups.com, "Gyowanny Queiroz"
<gyowanny@h...> wrote:
No, IF can be used in Stored Procedures only, but, again, not in SQL
statements within SP. Note you can Select From Stored_Procedure. Look
at FB1.5 Release Notes for CASE in Select too, but if your query is
"static" (you will not many times apply different WHERE conditions to
the same main query body) SP should be more effective.
Best regards,
Alexander.
<gyowanny@h...> wrote:
> Hi,for example) ?
>
> Can I use "if" clause into a SQL property of IBX component (IBQuery
No, IF can be used in Stored Procedures only, but, again, not in SQL
statements within SP. Note you can Select From Stored_Procedure. Look
at FB1.5 Release Notes for CASE in Select too, but if your query is
"static" (you will not many times apply different WHERE conditions to
the same main query body) SP should be more effective.
Best regards,
Alexander.