cette syntaxe n'est pas comprise par oracle?
select case test
when a or b then c
when d or e then f
else
end
from table
cette syntaxe n'est pas comprise par oracle?
select case test
when a or b then c
when d or e then f
else
end
from table
Si mais pas pour toutes les versions (à partir de la 9i uniquement).
NB : A l'avenir merci :
- de penser aux balises code
- d'indiquer votre version d'oracle
je suis en Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
le case fonctionne très bien, c'est le OR qui pose pb.
si je mets:
select case test
when a then c
when b then c
when d then f
when e then f
else xxx
end
from table
ça fonctionne bien
si je mets:
select case test
when a or b then c
when d or e then f
else xxx
end
from table
j'ai 'ORA-00905: Mot clé absent'.
J'espère avoir été assez précis cette fois.
Partager