Matteo Posted August 8, 2022 Share Posted August 8, 2022 Quì il codice che crea il problema, purtroppo il form non me lo fa postare nemmeno formattato correttamente come codice (-_-) https://pastecode.io/s/9t6fwhtw Link to comment Share on other sites More sharing options...
Prestachamps Posted August 8, 2022 Share Posted August 8, 2022 Ciao, Se si utilizzano valori non numerici dopo l'operatore IN, è necessario inserirli tra virgolette: https://www.mysqltutorial.org/mysql-basics/mysql-in/ Probabilmente in questo modo funzionerà: SELECT C.id_customer, C.firstname, C.lastname, C.email FROM `ps_customer` C INNER JOIN `ps_orders` `O` ON C.id_customer = O.id_customer INNER JOIN `ps_order_detail` `OD` ON O.id_order = OD.id_order WHERE (OD.product_reference IN ('PRN013100-02')) Spero di poter aiutare. Buona giornata, Leo. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now