2020年全国省市区街道4层
官网地址:http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2020/index.html
表结构:
CREATE TABLE `city` (
`id` bigint(20) NOT NULL COMMENT '区划代码',
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
`pid` bigint(20) NULL DEFAULT NULL COMMENT '父级区划代码',
`province_code` bigint(20) NULL DEFAULT NULL COMMENT '省代码',
`city_code` bigint(20) NULL DEFAULT NULL COMMENT '市代码',
`area_code` bigint(20) NULL DEFAULT NULL COMMENT '区代码',
`street_code` bigint(20) NULL DEFAULT NULL COMMENT '街道代码',
`committee_code` bigint(20) NULL DEFAULT NULL COMMENT '居委/社区',
`short_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '简称',
`city_no` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '区号',
`lng` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '经度',
`lat` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '纬度',
`sort` int(11) NULL DEFAULT NULL COMMENT '排序',
`level` int(4) NULL DEFAULT NULL COMMENT '级别: 0-国家 ,1-省, 2-市, 3-区/县, 4-街/镇',
PRIMARY KEY (`id`) USING BTREE,
INDEX `name`(`name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '全国行政区域表' ROW_FORMAT = DYNAMIC;
1