Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF() in ORACLE.
Message
 
 
À
29/10/2001 08:11:12
Deepak Chopra
IBM Global Services India Pvt. Ltd.
Pune, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00574389
Message ID:
00574409
Vues:
20
>What is the replacement of IIF() in ORACLE.
>
>
>Thannks in advance.

DECODE() is like an IIF() function. Ex.
select decode(mytable.fieldname,'A','Aardvark','B','Bandicoot')
Fieldname - expression to search for
'A' and 'B' - possible values of Fieldname
'Aardvark' and 'Bandicoot' - values to return of corresponding possible value is correct

Check out the documentation for more info on DECODE().

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform