• 最新行政区划编码数据


    行政区划的数据来源:国家统计局(截止2011年10月31日)

    参考网址:http://www.stats.gov.cn/tjbz/xzqhdm/t20120105_402777427.htm

    国家统计局给出的数据是网页格式的,如果需要把这些数据收纳到项目中来,需要费点儿周折。我用HttpClient工具读取了网页的内容,然后经过简单的分析拼接,最后得到了SQL脚本,SQL脚本的内容如下:

     注:本贴中的数据只限学习交流用,因此而引起的任何法律责任和纠纷均和作者无关。如需转帖,请注明出处。

    -- ---------------------
    -- 行政区划临时表
    -- @author Programmer.Wenlong
    -- @since 2012-03-09
    -- ---------------------
    create table temp(
    	code varchar(8),
    	name varchar(32),
    	primary key(code)
    );
    
    insert into temp(code,name) values('110000','北京市');
    insert into temp(code,name) values('110100','市辖区');
    insert into temp(code,name) values('110101','东城区');
    insert into temp(code,name) values('110102','西城区');
    insert into temp(code,name) values('110105','朝阳区');
    insert into temp(code,name) values('110106','丰台区');
    insert into temp(code,name) values('110107','石景山区');
    insert into temp(code,name) values('110108','海淀区');
    insert into temp(code,name) values('110109','门头沟区');
    insert into temp(code,name) values('110111','房山区');
    insert into temp(code,name) values('110112','通州区');
    insert into temp(code,name) values('110113','顺义区');
    insert into temp(code,name) values('110114','昌平区');
    insert into temp(code,name) values('110115','大兴区');
    insert into temp(code,name) values('110116','怀柔区');
    insert into temp(code,name) values('110117','平谷区');
    insert into temp(code,name) values('110200','县');
    insert into temp(code,name) values('110228','密云县');
    insert into temp(code,name) values('110229','延庆县');
    insert into temp(code,name) values('120000','天津市');
    insert into temp(code,name) values('120100','市辖区');
    insert into temp(code,name) values('120101','和平区');
    insert into temp(code,name) values('120102','河东区');
    insert into temp(code,name) values('120103','河西区');
    insert into temp(code,name) values('120104','南开区');
    insert into temp(code,name) values('120105','河北区');
    insert into temp(code,name) values('120106','红桥区');
    insert into temp(code,name) values('120110','东丽区');
    insert into temp(code,name) values('120111','西青区');
    insert into temp(code,name) values('120112','津南区');
    insert into temp(code,name) values('120113','北辰区');
    insert into temp(code,name) values('120114','武清区');
    insert into temp(code,name) values('120115','宝坻区');
    insert into temp(code,name) values('120116','滨海新区');
    insert into temp(code,name) values('120200','县');
    insert into temp(code,name) values('120221','宁河县');
    insert into temp(code,name) values('120223','静海县');
    insert into temp(code,name) values('120225','蓟县');
    insert into temp(code,name) values('130000','河北省');
    insert into temp(code,name) values('130100','石家庄市');
    insert into temp(code,name) values('130101','市辖区');
    insert into temp(code,name) values('130102','长安区');
    insert into temp(code,name) values('130103','桥东区');
    insert into temp(code,name) values('130104','桥西区');
    insert into temp(code,name) values('130105','新华区');
    insert into temp(code,name) values('130107','井陉矿区');
    insert into temp(code,name) values('130108','裕华区');
    insert into temp(code,name) values('130121','井陉县');
    insert into temp(code,name) values('130123','正定县');
    insert into temp(code,name) values('130124','栾城县');
    insert into temp(code,name) values('130125','行唐县');
    insert into temp(code,name) values('130126','灵寿县');
    insert into temp(code,name) values('130127','高邑县');
    insert into temp(code,name) values('130128','深泽县');
    insert into temp(code,name) values('130129','赞皇县');
    insert into temp(code,name) values('130130','无极县');
    insert into temp(code,name) values('130131','平山县');
    insert into temp(code,name) values('130132','元氏县');
    insert into temp(code,name) values('130133','赵县');
    insert into temp(code,name) values('130181','辛集市');
    insert into temp(code,name) values('130182','藁城市');
    insert into temp(code,name) values('130183','晋州市');
    insert into temp(code,name) values('130184','新乐市');
    insert into temp(code,name) values('130185','鹿泉市');
    insert into temp(code,name) values('130200','唐山市');
    insert into temp(code,name) values('130201','市辖区');
    insert into temp(code,name) values('130202','路南区');
    insert into temp(code,name) values('130203','路北区');
    insert into temp(code,name) values('130204','古冶区');
    insert into temp(code,name) values('130205','开平区');
    insert into temp(code,name) values('130207','丰南区');
    insert into temp(code,name) values('130208','丰润区');
    insert into temp(code,name) values('130223','滦县');
    insert into temp(code,name) values('130224','滦南县');
    insert into temp(code,name) values('130225','乐亭县');
    insert into temp(code,name) values('130227','迁西县');
    insert into temp(code,name) values('130229','玉田县');
    insert into temp(code,name) values('130230','唐海县');
    insert into temp(code,name) values('130281','遵化市');
    insert into temp(code,name) values('130283','迁安市');
    insert into temp(code,name) values('130300','秦皇岛市');
    insert into temp(code,name) values('130301','市辖区');
    insert into temp(code,name) values('130302','海港区');
    insert into temp(code,name) values('130303','山海关区');
    insert into temp(code,name) values('130304','北戴河区');
    insert into temp(code,name) values('130321','青龙满族自治县');

     

    因数据较多,我已上传至http://download.csdn.net/detail/mycdsnstudy/4129537

    当然,不同级别的行政区划之间还存在关联关系。只要把源数据导入到数据库中,剩的工作就相对简单了。

  • 相关阅读:
    新人,请多指教,有个java小问题: bety a=300,强制类型转换,分析我的做法是否正确?谢谢
    生活健康
    小涛涛
    学习笔记(三)
    学习笔记(二)
    学习笔记(一)
    子元素宽度为100%,缩小窗口,父元素出现横向滚动条,滚动条向右拉,父元素右边有一块空白区域,没有背景颜色
    word-wrap:break-word和word-break:break-all的区别
    链接link使用href=“#”和href="##"的区别
    C#中在路径前使用 @ 的作用
  • 原文地址:https://www.cnblogs.com/wenlong/p/6188482.html
Copyright © 2020-2023  润新知