Ver Mensaje Individual
  #6 (permalink)  
Antiguo 16/01/2013, 07:07
Avatar de satjaen
satjaen
 
Fecha de Ingreso: septiembre-2012
Ubicación: Jaén (Andalucía)
Mensajes: 893
Antigüedad: 11 años, 8 meses
Puntos: 10
Respuesta: Select a dos tablas.

Cita:
Iniciado por satjaen Ver Mensaje
Perdona gnzsoloyo, es que no habia visto tu respuesta.
Pruebo y te digo algo.
gnzsoloyo, me da este error:

Código MySQL:
Ver original
  1. Error
  2.  
  3. consulta SQL: Documentación
  4.  
  5. SELECT U.telefonos, U.name, A.telefonos, A.name
  6. FROM usuarios U
  7. INNER JOIN avisos A U.user_id = A.user_id
  8. WHERE U.telefonos = '953000'
  9. OR A.telefonos = '953000'
  10. LIMIT 0 , 30
  11.  
  12. MySQL ha dicho: Documentación
  13. #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 'U.user_id = A.user_id
  14. WHERE U.telefonos='953000' OR A.telefonos='953000'
  15. ' at line 2