Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/09/2011, 16:54
Avatar de Jota_sk
Jota_sk
 
Fecha de Ingreso: octubre-2008
Mensajes: 188
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Error en consulta JOIN

Gracias por responder. De momento solo quiero unir las 3 tablas, luego ya mostrare los datos que quiero.
He hecho esto
Código SQL:
Ver original
  1. SELECT a.*, b.*, c.*, FROM UNION a INNER JOIN ciudades b ON a.idciudad = b.id INNER JOIN usuarios c ON c.id = a.idusuarios

pero me da el diguiente error: #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 'FROM union a INNER JOIN ciudades b ON a.idciudad = b.id INNER JOIN usuarios c ON c' at line 1