Heim >Datenbank >MySQL-Tutorial >全国省市区县三级级联数据

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

WBOY
WBOYOriginal
2016-06-07 14:57:391573Durchsuche

全国省市区县三级级联数据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');
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');
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn