Home > Database > Mysql Tutorial > 全国省市区县三级级联数据

全国省市区县三级级联数据

WBOY
Release: 2016-06-07 14:57:39
Original
1588 people have browsed it

全国省市区县三级级联数据mysql脚本 无 CREATE TABLE `p_c_a` ( `id` varchar(255) DEFAULT NULL, `area_info` varchar(255) DEFAULT NULL, `father_id` varchar(255) DEFAULT NULL, `area_level` varchar(255) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=

全国省市区县三级级联数据 mysql脚本
CREATE TABLE `p_c_a` (
  `id` varchar(255) DEFAULT NULL,
  `area_info` varchar(255) DEFAULT NULL,
  `father_id` varchar(255) DEFAULT NULL,
  `area_level` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of p_c_a
-- ----------------------------
INSERT INTO `p_c_a` VALUES ('R00001', '北京', null, '1');
INSERT INTO `p_c_a` VALUES ('R00002', '朝阳区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00003', '海淀区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00004', '西城区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00005', '东城区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00006', '崇文区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00007', '宣武区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00008', '丰台区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00009', '石景山区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00010', '门头沟', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00011', '房山区', 'R00001', '2');
Copy after login
Copy after login
CREATE TABLE `p_c_a` (
  `id` varchar(255) DEFAULT NULL,
  `area_info` varchar(255) DEFAULT NULL,
  `father_id` varchar(255) DEFAULT NULL,
  `area_level` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of p_c_a
-- ----------------------------
INSERT INTO `p_c_a` VALUES ('R00001', '北京', null, '1');
INSERT INTO `p_c_a` VALUES ('R00002', '朝阳区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00003', '海淀区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00004', '西城区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00005', '东城区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00006', '崇文区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00007', '宣武区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00008', '丰台区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00009', '石景山区', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00010', '门头沟', 'R00001', '2');
INSERT INTO `p_c_a` VALUES ('R00011', '房山区', 'R00001', '2');
Copy after login
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template