
11/08/2011, 16:09
|
 | Colaborador | | Fecha de Ingreso: agosto-2006 Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 18 años, 6 meses Puntos: 774 | |
Respuesta: Problema consulta LEFT join multiple (MYSQL) SELECT t1.*,t2.*,t3.* FROM {$this->bd}{$this->Tcontenido} as t1 LEFT JOIN {$this->bd}{$this->Tsets} as t2 ON t1.cod_noticia = t2.cod_noticia
left join {$this->bd}{$this->Tcount} as t3 ON t2.cod_noticia=t3.cod_pieza
where t1.cod_noticia IN ($codigos) order by t3.counter desc
Prueba algo asi :)
Saludos!
__________________ What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me |