Error de escritura en consulta mysql
Publicado por Tomeu Payeras Sánchez (1 intervención) el 31/03/2013 19:51:43
Buenas alguien sabe porqué hay un error de consulta mysql:
SELECT llibres.ID_LLIB, editors.NOM_EDIT, exemplars.NUM_EXM from llibres, editors, exemplars inner join on llibres.ID_LLIB = exemplars.FK_IDLLIB WHERE NOM_EDIT.ID_EDIT = FK_IDEDIT ORDER BY ID_LLIB
hay 3 tablas, y quiero mostrar los registros de las tres, tal vez falte un outer join para no mostrar registros repetidos.
El error es el típico:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'on llibres.ID_LLIB = exemplars.FK_IDLLIB WHERE NOM_EDIT.ID_EDIT = FK_IDEDIT OR' at line 1
Gracias por la contestación.
SELECT llibres.ID_LLIB, editors.NOM_EDIT, exemplars.NUM_EXM from llibres, editors, exemplars inner join on llibres.ID_LLIB = exemplars.FK_IDLLIB WHERE NOM_EDIT.ID_EDIT = FK_IDEDIT ORDER BY ID_LLIB
hay 3 tablas, y quiero mostrar los registros de las tres, tal vez falte un outer join para no mostrar registros repetidos.
El error es el típico:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'on llibres.ID_LLIB = exemplars.FK_IDLLIB WHERE NOM_EDIT.ID_EDIT = FK_IDEDIT OR' at line 1
Gracias por la contestación.
Valora esta pregunta


0