Bonjour,
j'ai une requête avec de 35 tables utilisant "UNION";
je voulais remplacer pour une autre requête, mais donne une erreur. comment faire une requête pour 35 tables.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 $sql=" select id, nom, nom1, champ, champ1, champ2 from table1 where nom='paris' or nom1='paris' UNION select id, nom, nom1, champ, champ1, champ2 from table2 where nom='paris' or nom1='paris' UNION.... select id, nom, nom1, champ, champ1, champ2 from table35 where nom='paris' or nom1='paris' ";
merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2$sql=" select id, nom, nom1, champ, champ1, champ2 from table1, table2, table3,.... where nom='paris' or nom1='paris'";
Partager