Requète INSERT avec jointure
Fermé
labourette
Messages postés
657
Date d'inscription
dimanche 24 août 2008
Statut
Membre
Dernière intervention
24 juillet 2016
-
20 févr. 2014 à 10:28
labourette Messages postés 657 Date d'inscription dimanche 24 août 2008 Statut Membre Dernière intervention 24 juillet 2016 - 1 mars 2014 à 00:52
labourette Messages postés 657 Date d'inscription dimanche 24 août 2008 Statut Membre Dernière intervention 24 juillet 2016 - 1 mars 2014 à 00:52
A voir également:
- Insert into jointure
- Touche insert - Guide
- Insert boot disk and press any key ✓ - Forum Windows
- Your device ran into a problem and needs to restart - Forum Windows 10
- Insert boot media in selected boot device and press a key ✓ - Forum Windows 10
- Disk boot failure insert system disk and press enter - Guide
9 réponses
labourette
Messages postés
657
Date d'inscription
dimanche 24 août 2008
Statut
Membre
Dernière intervention
24 juillet 2016
6
26 févr. 2014 à 07:14
26 févr. 2014 à 07:14
Bonjour
J'ai mis en paramètre après le SELECT la Valeur et non le nom des champs comme tu me l'a dit
Et surprise ma requète SQL dans PhpMyAdmin elle fonctionne très bien.
Par contre dans ma page PHP toujours ce message d'erreur
Notice: Undefined property: PDO::$errorInfo in C.........
$sql = "INSERT INTO tb_gestion_admin ( rid_adherent, rid_categorie_statut )
SELECT tb_gestion_adherent.id_adherent, tb_categorie_statut.id_categorie_statut
FROM tb_gestion_adherent
LEFT OUTER JOIN (tb_categorie_statut
LEFT OUTER JOIN tb_gestion_admin
ON tb_categorie_statut.id_categorie_statut = tb_gestion_admin.rid_categorie_statut)
ON tb_gestion_adherent.id_adherent = tb_gestion_admin.rid_adherent
or die(print_r($bdd->errorInfo()))";
Si jamais tu comprend cette erreur Merci
Merci beaucoup
J'ai mis en paramètre après le SELECT la Valeur et non le nom des champs comme tu me l'a dit
Et surprise ma requète SQL dans PhpMyAdmin elle fonctionne très bien.
Par contre dans ma page PHP toujours ce message d'erreur
Notice: Undefined property: PDO::$errorInfo in C.........
$sql = "INSERT INTO tb_gestion_admin ( rid_adherent, rid_categorie_statut )
SELECT tb_gestion_adherent.id_adherent, tb_categorie_statut.id_categorie_statut
FROM tb_gestion_adherent
LEFT OUTER JOIN (tb_categorie_statut
LEFT OUTER JOIN tb_gestion_admin
ON tb_categorie_statut.id_categorie_statut = tb_gestion_admin.rid_categorie_statut)
ON tb_gestion_adherent.id_adherent = tb_gestion_admin.rid_adherent
or die(print_r($bdd->errorInfo()))";
Si jamais tu comprend cette erreur Merci
Merci beaucoup