Probleme avec un CREATE TEMPORARY TABLE
Fermé
elid
Messages postés
4
Date d'inscription
mercredi 14 mai 2008
Statut
Membre
Dernière intervention
14 mai 2008
-
14 mai 2008 à 11:29
elid Messages postés 4 Date d'inscription mercredi 14 mai 2008 Statut Membre Dernière intervention 14 mai 2008 - 14 mai 2008 à 13:42
elid Messages postés 4 Date d'inscription mercredi 14 mai 2008 Statut Membre Dernière intervention 14 mai 2008 - 14 mai 2008 à 13:42
A voir également:
- Probleme avec un CREATE TEMPORARY TABLE
- Table ascii - Guide
- Table des matières word - Guide
- Aucune entrée de table des matières n'a été trouvée. - Forum Word
- No bootable partition in table ✓ - Forum Windows
- Table des annexes word - Forum Word
2 réponses
byakhlefncr
Messages postés
260
Date d'inscription
vendredi 1 juillet 2005
Statut
Membre
Dernière intervention
11 septembre 2008
63
14 mai 2008 à 13:35
14 mai 2008 à 13:35
Bonjour,
Essaies de modifier ton script de cette façon :
/////////////////////////////////////////////////////
$qu = "CREATE TEMPORARY TABLE temp ";
$qu .= "SELECT videos.* FROM videos LEFT JOIN dicoindex ON(id=idvideo) WHERE idlangue='20'; ";
$rez = mysql_query($qu);
$qu = "SELECT * FROM temp LEFT JOIN dico ON(iddico=dico.id) ORDER BY orderid ASC";
$rez = mysql_query($qu);
$g = mysql_fetch_assoc($rez);
////////////////////////////////////////////////////
Bonne chance.
Essaies de modifier ton script de cette façon :
/////////////////////////////////////////////////////
$qu = "CREATE TEMPORARY TABLE temp ";
$qu .= "SELECT videos.* FROM videos LEFT JOIN dicoindex ON(id=idvideo) WHERE idlangue='20'; ";
$rez = mysql_query($qu);
$qu = "SELECT * FROM temp LEFT JOIN dico ON(iddico=dico.id) ORDER BY orderid ASC";
$rez = mysql_query($qu);
$g = mysql_fetch_assoc($rez);
////////////////////////////////////////////////////
Bonne chance.
elid
Messages postés
4
Date d'inscription
mercredi 14 mai 2008
Statut
Membre
Dernière intervention
14 mai 2008
14 mai 2008 à 13:42
14 mai 2008 à 13:42
Résolu
J'ai finalement opté pour 2 INNER JOIN
SELECT V.* FROM dico AS D
INNER JOIN dicoindex AS I ON(iddico=D.id) AND I.idlangue='20'
INNER JOIN videos as V ON I.idvideo=V.id
ORDER BY orderid ASC
ça marche nickel
Mais merci beaucoup
J'ai finalement opté pour 2 INNER JOIN
SELECT V.* FROM dico AS D
INNER JOIN dicoindex AS I ON(iddico=D.id) AND I.idlangue='20'
INNER JOIN videos as V ON I.idvideo=V.id
ORDER BY orderid ASC
ça marche nickel
Mais merci beaucoup