![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
05/07/2011, 00:10
|
![Avatar de repara2](http://static.forosdelweb.com/customavatars/avatar369161_2.gif) | | | Fecha de Ingreso: septiembre-2010 Ubicación: München
Mensajes: 2.445
Antigüedad: 14 años, 5 meses Puntos: 331 | |
Respuesta: jalar un dato desde otra tabla relacionando En el WHERE debes indicar si cod categoria pertenece a la tabla categorias o productos:
Código MySQL:
Ver original C.codcategoria, C.nombre_categoria, P.codproducto LEFT JOIN productos P ON (C.codcategoria = P.codcategoria ) WHERE C.codcategoria = % s
Salu2
__________________ Fere libenter homines, id quod volunt, credunt. |