Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/10/2010, 21:32
aguilajary
 
Fecha de Ingreso: abril-2010
Mensajes: 15
Antigüedad: 14 años, 11 meses
Puntos: 0
Pregunta Ayuda con tabla sql de Paises>estados

Se que este tema ya se ha tratado en el foro, pero no logro adaptarlo a mi script
En concreto quiero lograr esto [URL="http://hgp147.110mb.com/paises.htm"]http://hgp147.110mb.com/paises.htm[/URL]Solo que adaptado a mi web

(Aclaro que me estoy iniciando en esto)

Tengo lo siguiente como referencia
descargue estas dos tablas desde mi script:

Tabla de paises
Código:
DROP TABLE IF EXISTS `skadate_location_country`;
CREATE TABLE IF NOT EXISTS `skadate_location_country` (
  `Country_str_code` char(2) NOT NULL default '',
  `Region_str_code` char(3) NOT NULL default '',
  `Country_str_ISO3166_2char_code` char(2) NOT NULL default '',
  `Country_str_ISO3166_3char_code` char(3) NOT NULL default '',
  `Country_str_ISO3166_numeric_code` char(3) NOT NULL default '',
  `Country_str_name` varchar(100) NOT NULL default '',
  KEY `Region_str_code` (`Region_str_code`),
  KEY `Country_str_ISO3166_2char_code` (`Country_str_ISO3166_2char_code`),
  KEY `Country_str_ISO3166_3char_code` (`Country_str_ISO3166_3char_code`),
  KEY `Country_str_name` (`Country_str_name`),
  KEY `Country_str_code` (`Country_str_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Volcar la base de datos para la tabla `skadate_location_country`
--

INSERT INTO `skadate_location_country` (`Country_str_code`, `Region_str_code`, `Country_str_ISO3166_2char_code`, `Country_str_ISO3166_3char_code`, `Country_str_ISO3166_numeric_code`, `Country_str_name`) VALUES
('AW', 'CAC', 'AW', 'ABW', '533', 'Aruba'),
('AG', 'CAC', 'AG', 'ATG', '028', 'Antigua and Barbuda'),
('AE', 'MEa', 'AE', 'ARE', '784', 'United Arab Emirates'),
etc etc etc
Y la siguiente tabla de estados (solo que no tiene nada )

Código:
DROP TABLE IF EXISTS `skadate_location_state`;
CREATE TABLE IF NOT EXISTS `skadate_location_state` (
  `Admin1_str_code` varchar(5) NOT NULL default '',
  `Country_str_code` char(2) NOT NULL default '',
  `Admin1_str_name` varchar(100) NOT NULL default '',
  PRIMARY KEY  (`Admin1_str_code`),
  KEY `Country_str_code` (`Country_str_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Volcar la base de datos para la tabla `skadate_location_state`
Se que es mucho pedir ,pero como les comentaba no se mucho y no pretendo que lo hagan por mi solo orientarme por donde empiezo, que puedo utilizar
Encontre por ahi este archivo [URL="http://hgp147.110mb.com/paises.sql"][/URL]y me gustaria saber si lo puedo adaptar a mis tablas.
Espero su enooooooorme ayuda please

Pd. por que no puedo poner los links directos? y aparecen como el enlace de arriba.

Última edición por aguilajary; 21/10/2010 a las 21:38