插入中国所有省和市的SQL语句--以后用
需要做根据省市过滤查询的,不得已写入数据库,这个留着方便以后用。 首先创建两张表 drop database if exists BSM;
create database BSM; use BSM; create table provinces (
id int not null primary key,
pname varchar(50) not null
) engine = innodb; create table city (
id int not null primary key,
cname varchar(50) not null,
pid int not null,
foreign key(pid) references provinces(id)
) engine = innodb; ------------------------------------------ #插入省
insert into provinces values(1,'北京市');
insert into provinces values(2,'天津市');
insert into provinces values(3,'上海市');
insert into provinces values(4,'重庆市');
insert into provinces values(5,'河北省');
insert into provinces values(6,'山西省');
insert into provinces values(7,'台湾省');
insert into provinces values(8,'辽宁省');
insert into provinces values(9,'吉林省');
insert into provinces values(10,'黑龙江省');
insert into provinces values(11,'江苏省');
insert into provinces values(12,'浙江省');
insert into provinces values(13,'安徽省');
insert into provinces values(14,'福建省');
insert into provinces values(15,'江西省');
insert into provinces values(16,'山东省');
insert into provinces values(17,'河南省');
insert into provinces values(18,'湖北省');
insert into provinces values(19,'湖南省');
insert into provinces values(20,'广东省');
insert into provinces values(21,'甘肃省');
insert into provinces values(22,'四川省');
insert into provinces values(23,'贵州省');
insert into provinces values(24,'海南省');
insert into provinces values(25,'云南省');
insert into provinces values(26,'青海省');
insert into provinces values(27,'陕西省');
insert into provinces values(28,'广西壮族自治区');
insert into provinces values(29,'西藏自治区');
insert into provinces values(30,'宁夏回族自治区');
insert into provinces values(31,'新疆维吾尔自治区');
insert into provinces values(32,'内蒙古自治区');
insert into provinces values(33,'澳门特别行政区');
insert into provinces values(34,'香港特别行政区'); #插入市
-- 插入直辖市
insert into city values(1,'北京市',1);
insert into city values(2,'天津市',2);
insert into city values(3,'上海市',3);
insert into city values(4,'重庆市',4); -- 河北省 11个市
insert into city values(5,'石家庄市',5);
insert into city values(6,'唐山市',5);
insert into city values(7,'秦皇岛市',5);
insert into city values(8,'邯郸市',5);
insert into city values(9,'邢台市',5);
insert into city values(10,'保定市',5);
insert into city values(11,'张家口市',5);
insert into city values(12,'承德市',5);
insert into city values(13,'沧州市',5);
insert into city values(14,'廊坊市',5);
insert into city values(15,'衡水市',5); -- 山西省 11个市
insert into city values(16,'太原市',6);
insert into city values(17,'大同市',6);
insert into city values(18,'阳泉市',6);
insert into city values(19,'长治市',6);
insert into city values(20,'晋城市',6);
insert into city values(21,'朔州市',6);
insert into city values(22,'晋中市',6);
insert into city values(23,'运城市',6);
insert into city values(24,'忻州市',6);
insert into city values(25,'临汾市',6);
insert into city values(26,'吕梁市',6); -- 台湾省 7市 16县
insert into city values(27,'台北市',7);
insert into city values(28,'高雄市',7);
insert into city values(29,'基隆市',7);
insert into city values(30,'台中市',7);
insert into city values(31,'台南市',7);
insert into city values(32,'新竹市',7);
insert into city values(33,'嘉义市',7);
insert into city values(34,'台北县',7);
insert into city values(35,'宜兰县',7);
insert into city values(36,'桃园县',7);
insert into city values(37,'新竹县',7);
insert into city values(38,'苗栗县',7);
insert into city values(39,'台中县',7);
insert into city values(40,'彰化县',7);
insert into city values(41,'南投县',7);
insert into city values(42,'云林县',7);
insert into city values(43,'嘉义县',7);
insert into city values(44,'台南县',7);
insert into city values(45,'高雄县',7);
insert into city values(46,'屏东县',7);
insert into city values(47,'澎湖县',7);
insert into city values(48,'台东县',7);
insert into city values(49,'花莲县',7); -- 辽宁省 14个市
insert into city values(50,'沈阳市',8);
insert into city values(51,'大连市',8);
insert into city values(52,'鞍山市',8);
insert into city values(53,'抚顺市',8);
insert into city values(54,'本溪市',8);
insert into city values(55,'丹东市',8);
insert into city values(56,'锦州市',8);
insert into city values(57,'营口市',8);
insert into city values(58,'阜新市',8);
insert into city values(59,'辽阳市',8);
insert into city values(60,'盘锦市',8);
insert into city values(61,'铁岭市',8);
insert into city values(62,'朝阳市',8);
insert into city values(63,'葫芦岛市',8); -- 吉林省 9个市
insert into city values(64,'长春市',9);
insert into city values(65,'吉林市',9);
insert into city values(66,'四平市',9);
insert into city values(67,'辽源市',9);
insert into city values(68,'通化市',9);
insert into city values(69,'白山市',9);
insert into city values(70,'松原市',9);
insert into city values(71,'白城市',9);
insert into city values(72,'延边朝鲜族自治州',9); -- 黑龙江 13个市
insert into city values(73,'哈尔滨市',10);
insert into city values(74,'齐齐哈尔市',10);
insert into city values(75,'鹤 岗 市',10);
insert into city values(76,'双鸭山市',10);
insert into city values(77,'鸡 西 市',10);
insert into city values(78,'大 庆 市',10);
insert into city values(79,'伊 春 市',10);
insert into city values(80,'牡丹江市',10);
insert into city values(81,'佳木斯市',10);
insert into city values(82,'七台河市',10);
insert into city values(83,'黑 河 市',10);
insert into city values(84,'绥 化 市',10);
insert into city values(85,'大兴安岭地区',10); -- 江苏省 13个市
insert into city values(86,'南京市',11);
insert into city values(87,'无锡市',11);
insert into city values(88,'徐州市',11);
insert into city values(89,'常州市',11);
insert into city values(90,'苏州市',11);
insert into city values(91,'南通市',11);
insert into city values(92,'连云港市',11);
insert into city values(93,'淮安市',11);
insert into city values(94,'盐城市',11);
insert into city values(95,'扬州市',11);
insert into city values(96,'镇江市',11);
insert into city values(97,'泰州市',11);
insert into city values(98,'宿迁市',11); -- 浙江省 11个市
insert into city values(99,'杭州市',12);
insert into city values(100,'宁波市',12);
insert into city values(101,'温州市',12);
insert into city values(102,'嘉兴市',12);
insert into city values(103,'湖州市',12);
insert into city values(104,'绍兴市',12);
insert into city values(105,'金华市',12);
insert into city values(106,'衢州市',12);
insert into city values(107,'舟山市',12);
insert into city values(108,'台州市',12);
insert into city values(109,'丽水市',12); -- 安徽省 17个市
insert into city values(110,'合肥市',13);
insert into city values(111,'芜湖市',13);
insert into city values(112,'蚌埠市',13);
insert into city values(113,'淮南市',13);
insert into city values(114,'马鞍山市',13);
insert into city values(115,'淮北市',13);
insert into city values(116,'铜陵市',13);
insert into city values(117,'安庆市',13);
insert into city values(118,'黄山市',13);
insert into city values(119,'滁州市',13);
insert into city values(120,'阜阳市',13);
insert into city values(121,'宿州市',13);
insert into city values(122,'巢湖市',13);
insert into city values(123,'六安市',13);
insert into city values(124,'亳州市',13);
insert into city values(125,'池州市',13);
insert into city values(126,'宣城市',13); -- 福建省 9个市
insert into city values(127,'福州市',14);
insert into city values(128,'厦门市',14);
insert into city values(129,'莆田市',14);
insert into city values(130,'三明市',14);
insert into city values(131,'泉州市',14);
insert into city values(132,'漳州市',14);
insert into city values(133,'南平市',14);
insert into city values(134,'龙岩市',14);
insert into city values(135,'宁德市',14); -- 江西省 11个市
insert into city values(136,'南昌市',15);
insert into city values(137,'景德镇市',15);
insert into city values(138,'萍乡市',15);
insert into city values(139,'九江市',15);
insert into city values(140,'新余市',15);
insert into city values(141,'鹰潭市',15);
insert into city values(142,'赣州市',15);
insert into city values(143,'吉安市',15);
insert into city values(144,'宜春市',15);
insert into city values(145,'抚州市',15);
insert into city values(146,'上饶市',15); -- 山东省 17个市
insert into city values(147,'济南市',16);
insert into city values(148,'青岛市',16);
insert into city values(149,'淄博市',16);
insert into city values(150,'枣庄市',16);
insert into city values(151,'东营市',16);
insert into city values(152,'烟台市',16);
insert into city values(153,'潍坊市',16);
insert into city values(154,'济宁市',16);
insert into city values(155,'泰安市',16);
insert into city values(156,'威海市',16);
insert into city values(157,'日照市',16);
insert into city values(158,'莱芜市',16);
insert into city values(159,'临沂市',16);
insert into city values(160,'德州市',16);
insert into city values(161,'聊城市',16);
insert into city values(162,'滨州市',16);
insert into city values(163,'菏泽市',16); -- 河南省 17个市
insert into city values(164,'郑州市',17);
insert into city values(165,'开封市',17);
insert into city values(166,'洛阳市',17);
insert into city values(167,'平顶山市',17);
insert into city values(168,'安阳市',17);
insert into city values(169,'鹤壁市',17);
insert into city values(170,'新乡市',17);
insert into city values(171,'焦作市',17);
insert into city values(172,'濮阳市',17);
insert into city values(173,'许昌市',17);
insert into city values(174,'漯河市',17);
insert into city values(175,'三门峡市',17);
insert into city values(176,'南阳市',17);
insert into city values(177,'商丘市',17);
insert into city values(178,'信阳市',17);
insert into city values(179,'周口市',17);
insert into city values(180,'驻马店市',17);
insert into city values(181,'济源市',17); -- 湖北省 13个市
insert into city values(182,'武汉市',18);
insert into city values(183,'黄石市',18);
insert into city values(184,'十堰市',18);
insert into city values(185,'荆州市',18);
insert into city values(186,'宜昌市',18);
insert into city values(187,'襄樊市',18);
insert into city values(188,'鄂州市',18);
insert into city values(189,'荆门市',18);
insert into city values(190,'孝感市',18);
insert into city values(191,'黄冈市',18);
insert into city values(192,'咸宁市',18);
insert into city values(193,'随州市',18);
insert into city values(194,'仙桃市',18);
insert into city values(195,'天门市',18);
insert into city values(196,'潜江市',18);
insert into city values(197,'神农架林区',18);
insert into city values(198,'恩施土家族苗族自治州',18); -- 湖南省 13各市
insert into city values(199,'长沙市',19);
insert into city values(200,'株洲市',19);
insert into city values(201,'湘潭市',19);
insert into city values(202,'衡阳市',19);
insert into city values(203,'邵阳市',19);
insert into city values(204,'岳阳市',19);
insert into city values(205,'常德市',19);
insert into city values(206,'张家界市',19);
insert into city values(207,'益阳市',19);
insert into city values(208,'郴州市',19);
insert into city values(209,'永州市',19);
insert into city values(210,'怀化市',19);
insert into city values(211,'娄底市',19);
insert into city values(212,'湘西土家族苗族自治州',19); -- 广东省 21个市
insert into city values(213,'广州市',20);
insert into city values(214,'深圳市',20);
insert into city values(215,'珠海市',20);
insert into city values(216,'汕头市',20);
insert into city values(217,'韶关市',20);
insert into city values(218,'佛山市',20);
insert into city values(219,'江门市',20);
insert into city values(220,'湛江市',20);
insert into city values(221,'茂名市',20);
insert into city values(222,'肇庆市',20);
insert into city values(223,'惠州市',20);
insert into city values(224,'梅州市',20);
insert into city values(225,'汕尾市',20);
insert into city values(226,'河源市',20);
insert into city values(227,'阳江市',20);
insert into city values(228,'清远市',20);
insert into city values(229,'东莞市',20);
insert into city values(230,'中山市',20);
insert into city values(231,'潮州市',20);
insert into city values(232,'揭阳市',20);
insert into city values(233,'云浮市',20); -- 甘肃省 14个市
insert into city values(234,'兰州市',21);
insert into city values(235,'金昌市',21);
insert into city values(236,'白银市',21);
insert into city values(237,'天水市',21);
insert into city values(238,'嘉峪关市',21);
insert into city values(239,'武威市',21);
insert into city values(240,'张掖市',21);
insert into city values(241,'平凉市',21);
insert into city values(242,'酒泉市',21);
insert into city values(243,'庆阳市',21);
insert into city values(244,'定西市',21);
insert into city values(245,'陇南市',21);
insert into city values(246,'临夏回族自治州',21);
insert into city values(247,'甘南藏族自治州',21); -- 四川省 21个市
insert into city values(248,'成都市',22);
insert into city values(249,'自贡市',22);
insert into city values(250,'攀枝花市',22);
insert into city values(251,'泸州市',22);
insert into city values(252,'德阳市',22);
insert into city values(253,'绵阳市',22);
insert into city values(254,'广元市',22);
insert into city values(255,'遂宁市',22);
insert into city values(256,'内江市',22);
insert into city values(257,'乐山市',22);
insert into city values(258,'南充市',22);
insert into city values(259,'眉山市',22);
insert into city values(260,'宜宾市',22);
insert into city values(261,'广安市',22);
insert into city values(262,'达州市',22);
insert into city values(263,'雅安市',22);
insert into city values(264,'巴中市',22);
insert into city values(265,'资阳市',22);
insert into city values(266,'阿坝藏族羌族自治州',22);
insert into city values(267,'甘孜藏族自治州',22);
insert into city values(268,'凉山彝族自治州',22); -- 贵州省 9个市
insert into city values(269,'贵阳市',23);
insert into city values(270,'六盘水市',23);
insert into city values(271,'遵义市',23);
insert into city values(272,'安顺市',23);
insert into city values(273,'铜仁地区',23);
insert into city values(274,'毕节地区',23);
insert into city values(275,'黔西南布依族苗族自治州',23);
insert into city values(276,'黔东南苗族侗族自治州',23);
insert into city values(277,'黔南布依族苗族自治州',23); -- 海南省 18个市
insert into city values(278,'海口市',24);
insert into city values(279,'三亚市',24);
insert into city values(280,'五指山市',24);
insert into city values(281,'琼海市',24);
insert into city values(282,'儋州市',24);
insert into city values(283,'文昌市',24);
insert into city values(284,'万宁市',24);
insert into city values(285,'东方市',24);
insert into city values(286,'澄迈县',24);
insert into city values(287,'定安县',24);
insert into city values(288,'屯昌县',24);
insert into city values(289,'临高县',24);
insert into city values(290,'白沙黎族自治县',24);
insert into city values(291,'昌江黎族自治县',24);
insert into city values(292,'乐东黎族自治县',24);
insert into city values(293,'陵水黎族自治县',24);
insert into city values(294,'保亭黎族苗族自治县',24);
insert into city values(295,'琼中黎族苗族自治县',24); -- 云南省 16个市
insert into city values(296,'昆明市',25);
insert into city values(297,'曲靖市',25);
insert into city values(298,'玉溪市',25);
insert into city values(299,'保山市',25);
insert into city values(300,'昭通市',25);
insert into city values(301,'丽江市',25);
insert into city values(302,'思茅市',25);
insert into city values(303,'临沧市',25);
insert into city values(304,'文山壮族苗族自治州',25);
insert into city values(305,'红河哈尼族彝族自治州',25);
insert into city values(306,'西双版纳傣族自治州',25);
insert into city values(307,'楚雄彝族自治州',25);
insert into city values(308,'大理白族自治州',25);
insert into city values(309,'德宏傣族景颇族自治州',25);
insert into city values(310,'怒江傈傈族自治州',25);
insert into city values(311,'迪庆藏族自治州',25); -- 青海省 8个市
insert into city values(312,'西宁市',26);
insert into city values(313,'海东地区',26);
insert into city values(314,'海北藏族自治州',26);
insert into city values(315,'黄南藏族自治州',26);
insert into city values(316,'海南藏族自治州',26);
insert into city values(317,'果洛藏族自治州',26);
insert into city values(318,'玉树藏族自治州',26);
insert into city values(319,'海西蒙古族藏族自治州',26); -- 陕西省 10个市
insert into city values(320,'西安市',27);
insert into city values(321,'铜川市',27);
insert into city values(322,'宝鸡市',27);
insert into city values(323,'咸阳市',27);
insert into city values(324,'渭南市',27);
insert into city values(325,'延安市',27);
insert into city values(326,'汉中市',27);
insert into city values(327,'榆林市',27);
insert into city values(328,'安康市',27);
insert into city values(329,'商洛市',27); -- 广西壮族自治区 14个市
insert into city values(330,'南宁市',28);
insert into city values(331,'柳州市',28);
insert into city values(332,'桂林市',28);
insert into city values(333,'梧州市',28);
insert into city values(334,'北海市',28);
insert into city values(335,'防城港市',28);
insert into city values(336,'钦州市',28);
insert into city values(337,'贵港市',28);
insert into city values(338,'玉林市',28);
insert into city values(339,'百色市',28);
insert into city values(340,'贺州市',28);
insert into city values(341,'河池市',28);
insert into city values(342,'来宾市',28);
insert into city values(343,'崇左市',28); -- 西藏自治区 7个市
insert into city values(344,'拉萨市',29);
insert into city values(345,'那曲地区',29);
insert into city values(346,'昌都地区',29);
insert into city values(347,'山南地区',29);
insert into city values(348,'日喀则地区',29);
insert into city values(349,'阿里地区',29);
insert into city values(350,'林芝地区',29); -- 宁夏回族自治区 5个市
insert into city values(351,'银川市',30);
insert into city values(352,'石嘴山市',30);
insert into city values(353,'吴忠市',30);
insert into city values(354,'固原市',30);
insert into city values(355,'中卫市',30); -- 新疆维吾尔自治区 22个市
insert into city values(356,'乌鲁木齐市',31);
insert into city values(357,'克拉玛依市',31);
insert into city values(358,'石河子市 ',31);
insert into city values(359,'阿拉尔市',31);
insert into city values(360,'图木舒克市',31);
insert into city values(361,'五家渠市',31);
insert into city values(362,'吐鲁番市',31);
insert into city values(363,'阿克苏市',31);
insert into city values(364,'喀什市',31);
insert into city values(365,'哈密市',31);
insert into city values(366,'和田市',31);
insert into city values(367,'阿图什市',31);
insert into city values(368,'库尔勒市',31);
insert into city values(369,'昌吉市 ',31);
insert into city values(370,'阜康市',31);
insert into city values(371,'米泉市',31);
insert into city values(372,'博乐市',31);
insert into city values(373,'伊宁市',31);
insert into city values(374,'奎屯市',31);
insert into city values(375,'塔城市',31);
insert into city values(376,'乌苏市',31);
insert into city values(377,'阿勒泰市',31); -- 内蒙古自治区 12个市
insert into city values(378,'呼和浩特市',32);
insert into city values(379,'包头市',32);
insert into city values(380,'乌海市',32);
insert into city values(381,'赤峰市',32);
insert into city values(382,'通辽市',32);
insert into city values(383,'鄂尔多斯市',32);
insert into city values(384,'呼伦贝尔市',32);
insert into city values(385,'巴彦淖尔市',32);
insert into city values(386,'乌兰察布市',32);
insert into city values(387,'锡林郭勒盟',32);
insert into city values(388,'兴安盟',32);
insert into city values(389,'阿拉善盟',32); 表id为自增的情况
insert into t_Province values('北京市');
insert into t_Province values('天津市');
insert into t_Province values('上海市');
insert into t_Province values('重庆市');
insert into t_Province values('河北省');
insert into t_Province values('山西省');
insert into t_Province values('台湾省');
insert into t_Province values('辽宁省');
insert into t_Province values('吉林省');
insert into t_Province values('黑龙江省');
insert into t_Province values('江苏省');
insert into t_Province values('浙江省');
insert into t_Province values('安徽省');
insert into t_Province values('福建省');
insert into t_Province values('江西省');
insert into t_Province values('山东省');
insert into t_Province values('河南省');
insert into t_Province values('湖北省');
insert into t_Province values('湖南省');
insert into t_Province values('广东省');
insert into t_Province values('甘肃省');
insert into t_Province values('四川省');
insert into t_Province values('贵州省');
insert into t_Province values('海南省');
insert into t_Province values('云南省');
insert into t_Province values('青海省');
insert into t_Province values('陕西省');
insert into t_Province values('广西壮族自治区');
insert into t_Province values('西藏自治区');
insert into t_Province values('宁夏回族自治区');
insert into t_Province values('新疆维吾尔自治区');
insert into t_Province values('内蒙古自治区');
insert into t_Province values('澳门特别行政区');
insert into t_Province values('香港特别行政区');
insert into t_City values('北京市',1);
insert into t_City values('天津市',2);
insert into t_City values('上海市',3);
insert into t_City values('重庆市',4); -- 河北省 11个市
insert into t_City values('石家庄市',5);
insert into t_City values('唐山市',5);
insert into t_City values('秦皇岛市',5);
insert into t_City values('邯郸市',5);
insert into t_City values('邢台市',5);
insert into t_City values('保定市',5);
insert into t_City values('张家口市',5);
insert into t_City values('承德市',5);
insert into t_City values('沧州市',5);
insert into t_City values('廊坊市',5);
insert into t_City values('衡水市',5); -- 山西省 11个市
insert into t_City values('太原市',6);
insert into t_City values('大同市',6);
insert into t_City values('阳泉市',6);
insert into t_City values('长治市',6);
insert into t_City values('晋城市',6);
insert into t_City values('朔州市',6);
insert into t_City values('晋中市',6);
insert into t_City values('运城市',6);
insert into t_City values('忻州市',6);
insert into t_City values('临汾市',6);
insert into t_City values('吕梁市',6); -- 台湾省 7市 16县
insert into t_City values('台北市',7);
insert into t_City values('高雄市',7);
insert into t_City values('基隆市',7);
insert into t_City values('台中市',7);
insert into t_City values('台南市',7);
insert into t_City values('新竹市',7);
insert into t_City values('嘉义市',7);
insert into t_City values('台北县',7);
insert into t_City values('宜兰县',7);
insert into t_City values('桃园县',7);
insert into t_City values('新竹县',7);
insert into t_City values('苗栗县',7);
insert into t_City values('台中县',7);
insert into t_City values('彰化县',7);
insert into t_City values('南投县',7);
insert into t_City values('云林县',7);
insert into t_City values('嘉义县',7);
insert into t_City values('台南县',7);
insert into t_City values('高雄县',7);
insert into t_City values('屏东县',7);
insert into t_City values('澎湖县',7);
insert into t_City values('台东县',7);
insert into t_City values('花莲县',7); -- 辽宁省 14个市
insert into t_City values('沈阳市',8);
insert into t_City values('大连市',8);
insert into t_City values('鞍山市',8);
insert into t_City values('抚顺市',8);
insert into t_City values('本溪市',8);
insert into t_City values('丹东市',8);
insert into t_City values('锦州市',8);
insert into t_City values('营口市',8);
insert into t_City values('阜新市',8);
insert into t_City values('辽阳市',8);
insert into t_City values('盘锦市',8);
insert into t_City values('铁岭市',8);
insert into t_City values('朝阳市',8);
insert into t_City values('葫芦岛市',8); -- 吉林省 9个市
insert into t_City values('长春市',9);
insert into t_City values('吉林市',9);
insert into t_City values('四平市',9);
insert into t_City values('辽源市',9);
insert into t_City values('通化市',9);
insert into t_City values('白山市',9);
insert into t_City values('松原市',9);
insert into t_City values('白城市',9);
insert into t_City values('延边朝鲜族自治州',9); -- 黑龙江 13个市
insert into t_City values('哈尔滨市',10);
insert into t_City values('齐齐哈尔市',10);
insert into t_City values('鹤 岗 市',10);
insert into t_City values('双鸭山市',10);
insert into t_City values('鸡 西 市',10);
insert into t_City values('大 庆 市',10);
insert into t_City values('伊 春 市',10);
insert into t_City values('牡丹江市',10);
insert into t_City values('佳木斯市',10);
insert into t_City values('七台河市',10);
insert into t_City values('黑 河 市',10);
insert into t_City values('绥 化 市',10);
insert into t_City values('大兴安岭地区',10); -- 江苏省 13个市
insert into t_City values('南京市',11);
insert into t_City values('无锡市',11);
insert into t_City values('徐州市',11);
insert into t_City values('常州市',11);
insert into t_City values('苏州市',11);
insert into t_City values('南通市',11);
insert into t_City values('连云港市',11);
insert into t_City values('淮安市',11);
insert into t_City values('盐城市',11);
insert into t_City values('扬州市',11);
insert into t_City values('镇江市',11);
insert into t_City values('泰州市',11);
insert into t_City values('宿迁市',11); -- 浙江省 11个市
insert into t_City values('杭州市',12);
insert into t_City values('宁波市',12);
insert into t_City values('温州市',12);
insert into t_City values('嘉兴市',12);
insert into t_City values('湖州市',12);
insert into t_City values('绍兴市',12);
insert into t_City values('金华市',12);
insert into t_City values('衢州市',12);
insert into t_City values('舟山市',12);
insert into t_City values('台州市',12);
insert into t_City values('丽水市',12); -- 安徽省 17个市
insert into t_City values('合肥市',13);
insert into t_City values('芜湖市',13);
insert into t_City values('蚌埠市',13);
insert into t_City values('淮南市',13);
insert into t_City values('马鞍山市',13);
insert into t_City values('淮北市',13);
insert into t_City values('铜陵市',13);
insert into t_City values('安庆市',13);
insert into t_City values('黄山市',13);
insert into t_City values('滁州市',13);
insert into t_City values('阜阳市',13);
insert into t_City values('宿州市',13);
insert into t_City values('巢湖市',13);
insert into t_City values('六安市',13);
insert into t_City values('亳州市',13);
insert into t_City values('池州市',13);
insert into t_City values('宣城市',13); -- 福建省 9个市
insert into t_City values('福州市',14);
insert into t_City values('厦门市',14);
insert into t_City values('莆田市',14);
insert into t_City values('三明市',14);
insert into t_City values('泉州市',14);
insert into t_City values('漳州市',14);
insert into t_City values('南平市',14);
insert into t_City values('龙岩市',14);
insert into t_City values('宁德市',14); -- 江西省 11个市
insert into t_City values('南昌市',15);
insert into t_City values('景德镇市',15);
insert into t_City values('萍乡市',15);
insert into t_City values('九江市',15);
insert into t_City values('新余市',15);
insert into t_City values('鹰潭市',15);
insert into t_City values('赣州市',15);
insert into t_City values('吉安市',15);
insert into t_City values('宜春市',15);
insert into t_City values('抚州市',15);
insert into t_City values('上饶市',15); -- 山东省 17个市
insert into t_City values('济南市',16);
insert into t_City values('青岛市',16);
insert into t_City values('淄博市',16);
insert into t_City values('枣庄市',16);
insert into t_City values('东营市',16);
insert into t_City values('烟台市',16);
insert into t_City values('潍坊市',16);
insert into t_City values('济宁市',16);
insert into t_City values('泰安市',16);
insert into t_City values('威海市',16);
insert into t_City values('日照市',16);
insert into t_City values('莱芜市',16);
insert into t_City values('临沂市',16);
insert into t_City values('德州市',16);
insert into t_City values('聊城市',16);
insert into t_City values('滨州市',16);
insert into t_City values('菏泽市',16); -- 河南省 17个市
insert into t_City values('郑州市',17);
insert into t_City values('开封市',17);
insert into t_City values('洛阳市',17);
insert into t_City values('平顶山市',17);
insert into t_City values('安阳市',17);
insert into t_City values('鹤壁市',17);
insert into t_City values('新乡市',17);
insert into t_City values('焦作市',17);
insert into t_City values('濮阳市',17);
insert into t_City values('许昌市',17);
insert into t_City values('漯河市',17);
insert into t_City values('三门峡市',17);
insert into t_City values('南阳市',17);
insert into t_City values('商丘市',17);
insert into t_City values('信阳市',17);
insert into t_City values('周口市',17);
insert into t_City values('驻马店市',17);
insert into t_City values('济源市',17); -- 湖北省 13个市
insert into t_City values('武汉市',18);
insert into t_City values('黄石市',18);
insert into t_City values('十堰市',18);
insert into t_City values('荆州市',18);
insert into t_City values('宜昌市',18);
insert into t_City values('襄樊市',18);
insert into t_City values('鄂州市',18);
insert into t_City values('荆门市',18);
insert into t_City values('孝感市',18);
insert into t_City values('黄冈市',18);
insert into t_City values('咸宁市',18);
insert into t_City values('随州市',18);
insert into t_City values('仙桃市',18);
insert into t_City values('天门市',18);
insert into t_City values('潜江市',18);
insert into t_City values('神农架林区',18);
insert into t_City values('恩施土家族苗族自治州',18); -- 湖南省 13各市
insert into t_City values('长沙市',19);
insert into t_City values('株洲市',19);
insert into t_City values('湘潭市',19);
insert into t_City values('衡阳市',19);
insert into t_City values('邵阳市',19);
insert into t_City values('岳阳市',19);
insert into t_City values('常德市',19);
insert into t_City values('张家界市',19);
insert into t_City values('益阳市',19);
insert into t_City values('郴州市',19);
insert into t_City values('永州市',19);
insert into t_City values('怀化市',19);
insert into t_City values('娄底市',19);
insert into t_City values('湘西土家族苗族自治州',19); -- 广东省 21个市
insert into t_City values('广州市',20);
insert into t_City values('深圳市',20);
insert into t_City values('珠海市',20);
insert into t_City values('汕头市',20);
insert into t_City values('韶关市',20);
insert into t_City values('佛山市',20);
insert into t_City values('江门市',20);
insert into t_City values('湛江市',20);
insert into t_City values('茂名市',20);
insert into t_City values('肇庆市',20);
insert into t_City values('惠州市',20);
insert into t_City values('梅州市',20);
insert into t_City values('汕尾市',20);
insert into t_City values('河源市',20);
insert into t_City values('阳江市',20);
insert into t_City values('清远市',20);
insert into t_City values('东莞市',20);
insert into t_City values('中山市',20);
insert into t_City values('潮州市',20);
insert into t_City values('揭阳市',20);
insert into t_City values('云浮市',20); -- 甘肃省 14个市
insert into t_City values('兰州市',21);
insert into t_City values('金昌市',21);
insert into t_City values('白银市',21);
insert into t_City values('天水市',21);
insert into t_City values('嘉峪关市',21);
insert into t_City values('武威市',21);
insert into t_City values('张掖市',21);
insert into t_City values('平凉市',21);
insert into t_City values('酒泉市',21);
insert into t_City values('庆阳市',21);
insert into t_City values('定西市',21);
insert into t_City values('陇南市',21);
insert into t_City values('临夏回族自治州',21);
insert into t_City values('甘南藏族自治州',21); -- 四川省 21个市
insert into t_City values('成都市',22);
insert into t_City values('自贡市',22);
insert into t_City values('攀枝花市',22);
insert into t_City values('泸州市',22);
insert into t_City values('德阳市',22);
insert into t_City values('绵阳市',22);
insert into t_City values('广元市',22);
insert into t_City values('遂宁市',22);
insert into t_City values('内江市',22);
insert into t_City values('乐山市',22);
insert into t_City values('南充市',22);
insert into t_City values('眉山市',22);
insert into t_City values('宜宾市',22);
insert into t_City values('广安市',22);
insert into t_City values('达州市',22);
insert into t_City values('雅安市',22);
insert into t_City values('巴中市',22);
insert into t_City values('资阳市',22);
insert into t_City values('阿坝藏族羌族自治州',22);
insert into t_City values('甘孜藏族自治州',22);
insert into t_City values('凉山彝族自治州',22); -- 贵州省 9个市
insert into t_City values('贵阳市',23);
insert into t_City values('六盘水市',23);
insert into t_City values('遵义市',23);
insert into t_City values('安顺市',23);
insert into t_City values('铜仁地区',23);
insert into t_City values('毕节地区',23);
insert into t_City values('黔西南布依族苗族自治州',23);
insert into t_City values('黔东南苗族侗族自治州',23);
insert into t_City values('黔南布依族苗族自治州',23); -- 海南省 18个市
insert into t_City values('海口市',24);
insert into t_City values('三亚市',24);
insert into t_City values('五指山市',24);
insert into t_City values('琼海市',24);
insert into t_City values('儋州市',24);
insert into t_City values('文昌市',24);
insert into t_City values('万宁市',24);
insert into t_City values('东方市',24);
insert into t_City values('澄迈县',24);
insert into t_City values('定安县',24);
insert into t_City values('屯昌县',24);
insert into t_City values('临高县',24);
insert into t_City values('白沙黎族自治县',24);
insert into t_City values('昌江黎族自治县',24);
insert into t_City values('乐东黎族自治县',24);
insert into t_City values('陵水黎族自治县',24);
insert into t_City values('保亭黎族苗族自治县',24);
insert into t_City values('琼中黎族苗族自治县',24); -- 云南省 16个市
insert into t_City values('昆明市',25);
insert into t_City values('曲靖市',25);
insert into t_City values('玉溪市',25);
insert into t_City values('保山市',25);
insert into t_City values('昭通市',25);
insert into t_City values('丽江市',25);
insert into t_City values('思茅市',25);
insert into t_City values('临沧市',25);
insert into t_City values('文山壮族苗族自治州',25);
insert into t_City values('红河哈尼族彝族自治州',25);
insert into t_City values('西双版纳傣族自治州',25);
insert into t_City values('楚雄彝族自治州',25);
insert into t_City values('大理白族自治州',25);
insert into t_City values('德宏傣族景颇族自治州',25);
insert into t_City values('怒江傈傈族自治州',25);
insert into t_City values('迪庆藏族自治州',25); -- 青海省 8个市
insert into t_City values('西宁市',26);
insert into t_City values('海东地区',26);
insert into t_City values('海北藏族自治州',26);
insert into t_City values('黄南藏族自治州',26);
insert into t_City values('海南藏族自治州',26);
insert into t_City values('果洛藏族自治州',26);
insert into t_City values('玉树藏族自治州',26);
insert into t_City values('海西蒙古族藏族自治州',26); -- 陕西省 10个市
insert into t_City values('西安市',27);
insert into t_City values('铜川市',27);
insert into t_City values('宝鸡市',27);
insert into t_City values('咸阳市',27);
insert into t_City values('渭南市',27);
insert into t_City values('延安市',27);
insert into t_City values('汉中市',27);
insert into t_City values('榆林市',27);
insert into t_City values('安康市',27);
insert into t_City values('商洛市',27); -- 广西壮族自治区 14个市
insert into t_City values('南宁市',28);
insert into t_City values('柳州市',28);
insert into t_City values('桂林市',28);
insert into t_City values('梧州市',28);
insert into t_City values('北海市',28);
insert into t_City values('防城港市',28);
insert into t_City values('钦州市',28);
insert into t_City values('贵港市',28);
insert into t_City values('玉林市',28);
insert into t_City values('百色市',28);
insert into t_City values('贺州市',28);
insert into t_City values('河池市',28);
insert into t_City values('来宾市',28);
insert into t_City values('崇左市',28); -- 西藏自治区 7个市
insert into t_City values('拉萨市',29);
insert into t_City values('那曲地区',29);
insert into t_City values('昌都地区',29);
insert into t_City values('山南地区',29);
insert into t_City values('日喀则地区',29);
insert into t_City values('阿里地区',29);
insert into t_City values('林芝地区',29); -- 宁夏回族自治区 5个市
insert into t_City values('银川市',30);
insert into t_City values('石嘴山市',30);
insert into t_City values('吴忠市',30);
insert into t_City values('固原市',30);
insert into t_City values('中卫市',30); -- 新疆维吾尔自治区 22个市
insert into t_City values('乌鲁木齐市',31);
insert into t_City values('克拉玛依市',31);
insert into t_City values('石河子市 ',31);
insert into t_City values('阿拉尔市',31);
insert into t_City values('图木舒克市',31);
insert into t_City values('五家渠市',31);
insert into t_City values('吐鲁番市',31);
insert into t_City values('阿克苏市',31);
insert into t_City values('喀什市',31);
insert into t_City values('哈密市',31);
insert into t_City values('和田市',31);
insert into t_City values('阿图什市',31);
insert into t_City values('库尔勒市',31);
insert into t_City values('昌吉市 ',31);
insert into t_City values('阜康市',31);
insert into t_City values('米泉市',31);
insert into t_City values('博乐市',31);
insert into t_City values('伊宁市',31);
insert into t_City values('奎屯市',31);
insert into t_City values('塔城市',31);
insert into t_City values('乌苏市',31);
insert into t_City values('阿勒泰市',31); -- 内蒙古自治区 12个市
insert into t_City values('呼和浩特市',32);
insert into t_City values('包头市',32);
insert into t_City values('乌海市',32);
insert into t_City values('赤峰市',32);
insert into t_City values('通辽市',32);
insert into t_City values('鄂尔多斯市',32);
insert into t_City values('呼伦贝尔市',32);
insert into t_City values('巴彦淖尔市',32);
insert into t_City values('乌兰察布市',32);
insert into t_City values('锡林郭勒盟',32);
insert into t_City values('兴安盟',32);
insert into t_City values('阿拉善盟',32);
插入中国所有省和市的SQL语句--以后用的更多相关文章
- log4j向oracle中插入一条系统当前时间的sql语句
配置log4j,要向oracle插入一条系统当前时间的sql语句,按网上查找的总是出现各种各样的报错,最后总结出的写法是: ### shezhi### log4j.rootLogger = debug ...
- SQL语句的三大类
数据定义语言(DDL Data Defination Language):用于创建和定义数据库对象,并且将对这些对象的定义保存到数据库字典中,通过DDL语句可以创建数据库对象.修改数据库对象.删除数据 ...
- SQL Server数据库sql语句生成器(SqlDataToScript)的使用(sql server自增列(id)插入固定值)
SqlDataToScript是根据表数据进行生成 Insert Into语句,此工具还有一个好处是可以对自增列插入固定值,例如:自增的列id值为5,但是5这个行值已经删除,如果想存储Id自增列值为5 ...
- SQL语句 在一个表中插入新字段
SQL语句 在一个表中插入新字段: alter table 表名 add 字段名 字段类型 例: alter table OpenCourses add Audio varchar(50)alter ...
- Yii2 打印sql语句和批量插入数据
打印sql语句: $model->find()->createCommand()->getRawSql(); 批量插入 Yii::$app->db->createComm ...
- 6-03使用SQL语句一次型向表中插入多行数据
通过将现有表中的数据添加到已存在的表中: INSERT INTO <表名><列名> SELECT<列名> FROM<源表名> 将UserInfo的数据添 ...
- 一个自动生成插入与更新SQL语句的小类
无需关注字段类型,只要传入字段名与值的集合,自动生成Ms sql server SQL语句.详见Test()方法 using System; namespace Fan.iData.SqlUtilit ...
- 向已写好的多行插入sql语句中添加字段和值
#region 添加支款方式--向已写好的多行插入sql语句中添加字段和值 public int A_ZhifuFS(int diqu) { ; string strData = @"SEL ...
- sql插入多条数据的sql语句
sql插入多条数据的sql语句 有三种方法:1.InSert Into <表名>(列名)Select <列名>From <源表名>如:INSERT INTO Ton ...
随机推荐
- Nginx 在ubuntu14.04下的安装
来源:http://blog.csdn.net/hanshileiai/article/details/45580001 按照步骤一步一步来,绝对ok 1.如果出现错误: *4 connect() t ...
- 【struts2】Struts2的运行流程
1)前提条件 在讲解流程之前,假设我们已经建立了的一个名为strutsDeepen的web工程,该工程仅仅实现了简单的用户登陆与欢迎界面.具体的实现为: 在web.xml中配置了Struts2的过滤器 ...
- Oracle 12C -- purge dba_recyclebin
SQL> create user abce identified by abce; User created. SQL> grant resource,connect to abce; G ...
- Oracle 12C -- 在相同的列的集合上创建多个索引
在12C中,可以在相同的列的集合上创建多个索引,但是多个索引的类型要不同.同一时刻,只有一个是可见的. SQL> create table emp_tab as select * from em ...
- htmlentities、addslashes 、htmlspecialchars的使用
1.html_entity_decode():把html实体转换为字符. Eg:$str = "just atest & 'learn to use '";echo htm ...
- 温故而知新 原来 cheerio 还可以操作XML
- excel文件导入mysql
在数据处理的过程中,常常要把windows下的excel文件导入linux下的mysql.这其中会出现一些问题. 1.首先,要在mysql中建表.命令最好存在记事本中,可以随时修改,随时执行 crea ...
- kibana显示报错
"status": 500, "reason": "ElasticsearchException[org.elasticsear ...
- [CTCI] 下一个较大元素
下一个较大元素 题目描述 现在我们有一个int数组,请你找出数组中每个元素的下一个比它大的元素. 给定一个int数组A及数组的大小n,请返回一个int数组,代表每个元素比他大的下一个元素,若不存在则为 ...
- UISwipeGestureRecognizer 左右事件捕捉
转自:http://blog.163.com/china_uv/blog/static/117137267201252102612185/ UISwipeGestureRecognizer 左右事件相 ...