文件名称:
中国省市、区、县、镇、乡5级联动sql文件
开发工具:
文件大小: 68mb
下载次数: 0
上传时间: 2018-07-25
详细说明: 省市、区、县、镇、乡5级联动sql文件; 共74w多条记录,表结构清晰: CREATE TABLE `position_province` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `province_id` int(11) unsigned NOT NULL COMMENT '省份id、省份编号', `province_name` char(32) NOT NULL COMMENT '省份名称', PRIMARY KEY (`id`), UNIQUE KEY `provice_id` (`province_id`) ) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 COMMENT='省份数据库'; CREATE TABLE `position_city` ( `id` int(11) NOT NULL AUTO_INCREMENT, `province_id` int(10) unsigned NOT NULL COMMENT '地级市id', `city_id` bigint(20) uns igned NOT NULL COMMENT '县级市id', `city_name` char(64) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `city_id` (`city_id`), KEY `province_id` (`province_id`), CONSTRAINT `position_city_ibfk_1` FOREIGN KEY (`province_id`) REFERENCES `position_province` (`province_id`) ON DELETE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=346 DEFAULT CHARSET=utf8 COMMENT='县级市数据库'; CREATE TABLE `position_country` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '地级市主键ID', `city_id` bigint(20) unsigned NOT NULL COMMENT '地级市id', `country_id` bigint(20) unsigned NOT NULL COMMENT '县级id', `country_name` char(64) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `county_id` (`country_id`), KEY `city_id` (`city_id`), CONSTRAINT `position_country_ibfk_1` FOREIGN KEY (`city_id`) REFERENCES `position_city` (`city_id`) ON DELETE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=2857 DEFAULT CHARSET=utf8 COMMENT='地区市数据库'; CREATE TABLE `position_town` ( `id` int(11) NOT NULL AUTO_INCREMENT, `country_id` bigint(20) unsigned NOT NULL COMMENT '县级市id', `town_id` bigint(20) unsigned NOT NULL COMMENT '镇id', `town_name` char(64) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `town_id` (`town_id`), KEY `country_id` (`country_id`) USING BTREE, CONSTRAINT `position_town_ibfk_1` FOREIGN KEY (`country_id`) REFERENCES `position_country` (`country_id`) ) ENGINE=InnoDB AUTO_INCREMENT=43855 DEFAULT CHARSET=utf8 COMMENT='镇数据库'; CREATE TABLE `position_village` ( `id` int(11) NOT NULL AUTO_INCREMENT, `town_id` bigint(20) unsigned NOT NULL COMMENT '镇id', `village_id` bigint(20) unsigned NOT NULL COMMENT '村id--唯一', `village_name` char(64) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `village_id` (`village_id`), KEY `town_id` (`town_id`), CONSTRAINT `position_village_ibfk_1` FOREIGN KEY (`town_id`) REFERENCES `position_town` (`town_id`) ON DELETE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=693338 DEFAULT CHARSET=utf8 COMMENT='省市县镇村数据'; ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.