Subject | Re: Equivalent of VFP IIF() in FireBird SQL |
---|---|
Author | i5cvalde |
Post date | 2004-12-07T07:13:15Z |
--- In firebird-support@yahoogroups.com, Namit Nathwani
<namitnathwani@h...> wrote:
SQL> select iif(1 < 2, 'yes', 'no') from rdb$database;
CASE
======
yes
C.
<namitnathwani@h...> wrote:
> HiFirebird 2 allows IIF as a shortcut for CASE:
>
> Thanks a lot Helen, Wilhelm, Agung for your suggestion to use CASE.
>
> At 01:19 pm 06/12/2004, you wrote:
> >Use a CASE expression - syntax is in the v.1.5 release notes.
SQL> select iif(1 < 2, 'yes', 'no') from rdb$database;
CASE
======
yes
C.