Ver Mensaje Individual
  #6 (permalink)  
Antiguo 05/10/2009, 14:22
Agrus
 
Fecha de Ingreso: septiembre-2009
Mensajes: 40
Antigüedad: 15 años, 5 meses
Puntos: 0
Respuesta: Ayudita con redundancia de datos

Código:
CREATE TABLE `averias` (
  `tlf_av` text NOT NULL,
  `central` text,
  `empresa` text,
  `cola` text,
  `tipo_av` text,
  `cuadrilla` text,
  `nombre` text,
  `apellido` text,
  `estado` text,
  `area` tinytext,
  `nom_area` text,
  `hora` time DEFAULT NULL,
  `uni_n` text,
  `cc_cd` text,
  `pc_pd` text,
  `asd` text,
  `p_local` text,
  `fuente` text,
  `fecha` date DEFAULT NULL,
  `dias_pend` text,
  `rango` text,
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12703
Esa es la base de datos. Para abrir el archivo de excel y copiar el contenido en la base de datos uso fopen (php)

La unica manera que un numero (tlf_av) pueda estar repetido es que haya entrado al sistema en otra hora diferente a la ya existente

Última edición por Agrus; 05/10/2009 a las 14:28