
05/07/2011, 00:10
|
 | | | Fecha de Ingreso: septiembre-2010 Ubicación: München
Mensajes: 2.445
Antigüedad: 14 años, 6 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. |