Ver Mensaje Individual
  #19 (permalink)  
Antiguo 08/07/2008, 10:07
twickix86
 
Fecha de Ingreso: julio-2008
Mensajes: 24
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Problema al consultar con una base datos en MySql

olvida lo del mensaje anterior una pregunta me dio por hacer la consulta q me dijiste directamente en la base de datos y en la explicación de mysql me arrojo este resultado me prodrias explicar????

Código:
id  select_type  table  type  possible_keys  key  key_len  ref  rows  Extra  
1 SIMPLE empleado_fijo ref CED CED 53 const 1 Using where 
1 SIMPLE empleado_contratado ref CED CED 53 const 1 Using where 
1 SIMPLE empleado_suplente ref CED CED 53 const 1 Using where 
1 SIMPLE obrero_contratado ref CED CED 53 const 1 Using where 
1 SIMPLE obrero_suplente ref CED CED 53 const 1 Using where 
1 SIMPLE obrero_fijo_2008 ALL NULL NULL NULL NULL 56200 Using where
y este fue como hice la consulta

Código:
SELECT * 
FROM empleado_fijo
INNER JOIN empleado_contratado
USING ( CED ) 
INNER JOIN empleado_suplente
USING ( CED ) 
INNER JOIN obrero_contratado
USING ( CED ) 
INNER JOIN obrero_fijo_2008
USING ( CED ) 
INNER JOIN obrero_suplente
USING ( CED ) 
WHERE CED = "3139573"
LIMIT 0 , 30;