|
|
0 / 0 |
|
|
|
ALTER TABLE tmpmoteur AUTO_INCREMENT = 1, ADD INDEX index_pfamille_id (pfamille_id), ADD INDEX index_ordre (ordre), ADD INDEX index_tri (tri(10)), ADD INDEX index_marque (marque(10))
INSERT INTO tmpmoteur (tmpmoteur.article_id, tmpmoteur.descourterech, tmpmoteur.designationrech, tmpmoteur.marque, tmpmoteur.puht, tmpmoteur.reference, tmpmoteur.urlphoto, tmpmoteur.tri, tmpmoteur.pfamille_id,tmpmoteur.pfamillerech, tmpmoteur.pdescriptionrech,tmpmoteur.purlphotorech,tmpmoteur.niveau_id,tmpmoteur.groupe_id,tmpmoteur.promoF, tmpmoteur.ordre, tmpmoteur.masque, tmpmoteur.promo, tmpmoteur.nouveau, tmpmoteur.stock, tmpmoteur.delai_appro) SELECT article.article_id, article.descourte, article.designation, article.marque, article.puht, article.reference, article.urlphoto, article.tri, article.famille_id, famille.famille, famille.description, famille.urlphoto,famille.niveau_id,famille.groupe_id,famille.promoF, article.ordre, article.masque, article.promo, article.nouveau, article.stock, article.delai_appro FROM article LEFT JOIN famille ON (famille.famille_id = article.famille_id AND famille.validation >= 1) WHERE article.validation >= 1 AND article.famille_id = 52
INSERT INTO tmpmoteur (tmpmoteur.article_id, tmpmoteur.descourterech, tmpmoteur.designationrech, tmpmoteur.marque, tmpmoteur.puht, tmpmoteur.reference, tmpmoteur.urlphoto, tmpmoteur.tri, tmpmoteur.pfamille_id,tmpmoteur.pfamillerech, tmpmoteur.pdescriptionrech,tmpmoteur.purlphotorech,tmpmoteur.niveau_id,tmpmoteur.groupe_id,tmpmoteur.promoF, tmpmoteur.ordre, tmpmoteur.masque, tmpmoteur.promo, tmpmoteur.nouveau, tmpmoteur.stock, tmpmoteur.delai_appro) SELECT article.article_id, article.descourte, article.designation, article.marque, article.puht, article.reference, article.urlphoto, article.tri, article.famille_id, famille.famille, famille.description, famille.urlphoto,famille.niveau_id,famille.groupe_id, famille.promoF, article.ordre, article.masque, article.promo, article.nouveau,article.stock,article.delai_appro FROM article INNER JOIN famillesup ON (famillesup.article_id=article.article_id AND famillesup.validation >= 1 AND famillesup.famillesup_id = 52) LEFT JOIN famille ON (famille.famille_id = famillesup.famillesup_id AND famille.validation >= 1) WHERE article.validation >= 1
INSERT INTO tmpmoteur (tmpmoteur.famille_id, tmpmoteur.descourterech, tmpmoteur.designationrech, tmpmoteur.urlphoto, tmpmoteur.pfamille_id,tmpmoteur.pfamillerech,tmpmoteur.niveau_id,tmpmoteur.groupe_id, tmpmoteur.promoF, tmpmoteur.ordre) SELECT famille.famille_id, famille.famille, famille.description, famille.urlphoto, famille.parent_id, p.famille,famille.niveau_id,famille.groupe_id, famille.promoF, famille.ordre FROM famille LEFT JOIN famille AS p ON (famille.parent_id = p.famille_id AND p.validation >= 1) WHERE famille.validation >= 1 AND famille.parent_id = 52
SELECT count(recherche_id) FROM tmpmoteurEchec de la requête SELECT DISTINCT tri FROM tmpmoteur WHERE recherche_id > 0 AND tri IS NOT NULL AND tri != '' ORDER BY triEchec de la requête SELECT DISTINCT marque FROM tmpmoteur WHERE recherche_id > 0 AND marque IS NOT NULL AND marque != '' ORDER BY marqueEchec de la requête SELECT * FROM tmpmoteur WHERE recherche_id > 0 ORDER BY stock DESC, ordre ASC0 |
|
|
|