Jump to content

Problema QUERY select vuota se product_reference contiene TESTO


Matteo

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...