Bonjour,
Je dispose d'une fonction qui me renvoie une table.
Quand je fait
select * from mafonction(xx)
Tout est ok
Quand je fait
select * from mafonction(xx) where tab='str'
Tout est ok
Mais si je fait
select * from mafocntion(xx) where (tab='str') OR (tab='con' and isole=1)
Les temps de réponse s'écroule
Si je fait
1 2 3
| select distinct * from mafocntion(xx) where (tab='str')
UNION
select * from mafocntion(xx) where (tab='con' and isole=1) |
Tout est ok
Je voudrais pouvoir faire ma requète avec des OR sans avoir à faire un UNION. Est ce qu'il y a une solution ?
Merci
Partager