Bonjour.
Cette requête fonctionne
Mais celle-ci m'affiche une erreur : Unknown column 'o.book_id' in 'on clause'
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 SELECT o.*, books.book_name FROM operations AS o LEFT JOIN books ON o.book_id=books.book_id
Tandis que celle-là m'affiche une erreur : Not unique table/alias: 'b'
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 SELECT o.*, books.book_name FROM operations AS o, books AS b LEFT JOIN books ON o.book_id=books.book_id
Pourriez-vous me dire où se situe l'erreur ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 SELECT o.*, b.book_name FROM operations AS o, books AS b LEFT JOIN b ON o.book_id=b.book_id
Partager