Mysql
 sql >> Database >  >> RDS >> Mysql

MySQL non seleziona la riga con ID specificato

Usa un join standard con where appropriato criteri:

SELECT tbl_climatic.location, tbl_favourablecrops.favCrop 
FROM tbl_climatic join
     tbl_favourablecrops on tbl_climatic._id=tbl_favourablecrops.location_id
WHERE tbl_favourablecrops.location_id=0