Afficher une seule requête
Bonjour,
j'ai travaillé plusieurs requetes ORACLE dans la page PHP mais j'ai trouvé l' execution tres lourde.
je veux une requete avec plusieurs conditions permet de l'affichage directement sans cliquer ou selectionner ... Est-ce possible?
ce script permet d'afficher le tableau comme statistique..
par exemple:
direction|pc fixe|pc portable
dir1|10|20
dir2|05|14
req1
Code:
1 2 3 4 5 6
| select m.id, a.id, o.ch1, m.ch1
from table1 a, table2 m, table3 o
where o.ch1 (+) = m.ch2
and m.id (+) = a.id
and mch=0 //pc fixe
and dir=2; |
req2
Code:
1 2 3 4 5 6
| select m.id, a.id, o.ch1, m.ch1
from table1 a, table2 m, table3 o
where o.ch1 (+) = m.ch2
and m.id (+) = a.id
and mch=1 //pc fixe
and dir=2; |
au lieu de
Code:
1 2 3 4 5 6 7 8 9 10 11
| select m.id, a.id, o.ch1, m.ch1
from table1 a, table2 m, table3 o
where o.ch1 (+) = m.ch2
and m.id (+) = a.id
if($cd1) {
and mch=0 //pc fixe
}
if($cd2) {
and mch=1 //pc fixe
}
and dir=2; |
Merci