Ver Mensaje Individual
  #37 (permalink)  
Antiguo 11/12/2008, 10:02
Diegotopet
Invitado
 
Mensajes: n/a
Puntos:
Exclamación Respuesta: Re: APORTE: archivo SQL con todos los paises y sus respectivos estados/pro

a mi me sale este error

CREATE TABLE `estados` ( `id` int(5) unsigned NOT NULL auto_increment, `estado` varchar(100) NOT NULL, `relacion` varchar(100) NOT NULL default '0', PRIMARY KEY (`id`), KEY `codigo_pais` (`relacion`)
Error Code : 1050
Table 'estados' already exists
INSERT INTO `estados` (`id`, `estado`, `relacion`) VALUES (1, 'Badakhshan', '1'), (2, 'Badghis', '1'), (3, 'Baghlan', '1'), (4, 'Balkh', '1'), (5, 'Bamian', '1'), (6, 'Farah', '1'), (7, 'Faryab', '1')
Error Code : 1062
Duplicate entry '1' for key 1
INSERT INTO `estados` (`id`, `estado`, `relacion`) VALUES (3905, 'Port-of-Spain', '222'), (3906, 'Saint Andrew', '222'), (3907, 'Saint David', '222'), (3908, 'Saint George', '222'), (3909, 'Saint Patr
Error Code : 1062
Duplicate entry '3905' for key 1