Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/09/2008, 17:59
Avatar de Genetix
Genetix
 
Fecha de Ingreso: febrero-2002
Ubicación: Lima - Perú
Mensajes: 1.600
Antigüedad: 22 años, 2 meses
Puntos: 45
Respuesta: Consulta en tablas relacionadas

Prueba esto
Código sql:
Ver original
  1. SELECT * FROM paises t1 JOIN asociar t2 ON t1.id_pais = t2.id_pais
  2. JOIN registros t3 ON t2.id_registro = t3.id_registro
  3. WHERE id_registro =1

Saludos!
__________________
"El conocimiento nos hace responsables."
twitter: @benjamingb
blog personal: http://codigolinea.com
ZF Manual en español http://manual.zfdes.com