Ver Mensaje Individual
  #21 (permalink)  
Antiguo 10/07/2008, 09:25
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

Entendi eso gnzsoloyo, gracias por la ayuda. Ya corregi la estructura de las tablas quite los registros que tenian CED como null y estableci el mismo campo en NOT NULL para las todas las tablas que contienen el a pesar de eso me sigue el mismo problema

Código:
id  select_type  table  type  possible_keys  key  key_len  ref  rows  Extra  
1 SIMPLE empleado_fijo ref CED CED 52 const 1 Using where 
1 SIMPLE empleado_contratado ref CED CED 52 const 1 Using where 
1 SIMPLE empleado_suplente ref CED CED 52 const 1 Using where 
1 SIMPLE obrero_contratado ref CED CED 52 const 1 Using where 
1 SIMPLE obrero_suplente ref CED CED 52 const 1 Using where 
1 SIMPLE obrero_fijo_2008 ALL NULL NULL NULL NULL 56143 Using where
sigo sin entender xq pasa eso, y por otra parte el registro si existe xq yo mismo lo seleccione al azar para hacer el query y bueno puse la CED como not null como te menciones anteriorment y sigue pasando lo mismo