--************************************************
--为跟数据库进行统一,个人建议在每个表加前缀,如表TT_City
create
table
City
(
CityID int primary key,
CityName varchar(50)
not
null
,
RootID int,
Child int,
Layer int,
Sort int,
Isopen int
)
--********************************************************************************************************
insert
into
City
values
(1,
'北京市'
,0,0,1,1,1)
insert
into
City
values
(2,
'天津市'
,0,0,1,2,1)
insert
into
City
values
(3,
'上海市'
,0,0,1,3,1)
insert
into
City
values
(4,
'重庆市'
,0,0,1,4,1)
insert
into
City
values
(5,
'河北省'
,0,0,1,5,1)
insert
into
City
values
(6,
'山西省'
,0,0,1,6,1)
insert
into
City
values
(7,
'*省'
,0,0,1,7,1)
insert
into
City
values
(8,
'辽宁省'
,0,0,1,8,1)
insert
into
City
values
(9,
'吉林省'
,0,0,1,9,1)
insert
into
City
values
(10,
'黑龙江省'
,0,0,1,10,1)
insert
into
City
values
(11,
'江苏省'
,0,0,1,11,1)
insert
into
City
values
(12,
'浙江省'
,0,0,1,12,1)
insert
into
City
values
(13,
'安徽省'
,0,0,1,13,1)
insert
into
City
values
(14,
'福建省'
,0,0,1,14,1)
insert
into
City
values
(15,
'江西省'
,0,0,1,15,1)
insert
into
City
values
(16,
'山东省'
,0,0,1,16,1)
insert
into
City
values
(17,
'河南省'
,0,0,1,17,1)
insert
into
City
values
(18,
'湖北省'
,0,0,1,18,1)
insert
into
City
values
(19,
'湖南省'
,0,0,1,19,1)
insert
into
City
values
(20,
'广东省'
,0,0,1,20,1)
insert
into
City
values
(21,
'甘肃省'
,0,0,1,21,1)
insert
into
City
values
(22,
'四川省'
,0,0,1,22,1)
insert
into
City
values
(23,
'贵州省'
,0,0,1,23,1)
insert
into
City
values
(24,
'海南省'
,0,0,1,24,1)
insert
into
City
values
(25,
'云南省'
,0,0,1,25,1)
insert
into
City
values
(26,
'青海省'
,0,0,1,26,1)
insert
into
City
values
(27,
'陕西省'
,0,0,1,27,1)
insert
into
City
values
(28,
'广西壮族自治区'
,0,0,1,28,1)
insert
into
City
values
(29,
'*自治区'
,0,0,1,29,1)
insert
into
City
values
(30,
'宁夏回族自治区'
,0,0,1,30,1)
insert
into
City
values
(31,
'**自治区'
,0,0,1,31,1)
insert
into
City
values
(32,
'内蒙古自治区'
,0,0,1,32,1)
insert
into
City
values
(33,
'澳门特别行政区'
,0,0,1,33,1)
insert
into
City
values
(34,
'香港特别行政区'
,0,0,1,34,1)
----------------------------------------------------------------------------------------------------------------
--1北京市
insert
into
city
values
(61,
'东城区'
,1,0,2,1,0)
insert
into
city
values
(62,
'西城区'
,1,0,2,2,0)
insert
into
city
values
(63,
'崇文区'
,1,0,2,3,0)
insert
into
city
values
(64,
'宣武区'
,1,0,2,4,0)
insert
into
city
values
(65,
'朝阳区'
,1,0,2,5,0)
insert
into
city
values
(66,
'丰台区'
,1,0,2,6,0)
insert
into
city
values
(67,
'石景山区'
,1,0,2,7,0)
insert
into
city
values
(68,
'海淀区'
,1,0,2,8,0)
insert
into
city
values
(69,
'门头沟区'
,1,0,2,9,0)
insert
into
city
values
(70,
'房山区'
,1,0,2,10,0)
insert
into
city
values
(71,
'通州区'
,1,0,2,11,0)
insert
into
city
values
(72,
'顺义区'
,1,0,2,12,0)
insert
into
city
values
(73,
'昌平区'
,1,0,2,13,0)
insert
into
city
values
(74,
'大兴区'
,1,0,2,14,0)
insert
into
city
values
(75,
'怀柔区'
,1,0,2,15,0)
insert
into
city
values
(76,
'平谷区'
,1,0,2,16,0)
insert
into
city
values
(77,
'延庆县'
,1,0,2,17,0)
insert
into
city
values
(78,
'密云县'
,1,0,2,18,0)
update
city
set
Child=18
where
cityid=1
----------------------------------------------------------------------------------------------------------------
--5河北省(2005年辖:11个地级市,36个市辖区、22个县级市、108个县、6个自治县,1)
insert
into
city
values
(101,
'石家庄市'
,5,0,2,1,1)
insert
into
city
values
(102,
'唐山市'
,5,0,2,2,1)
insert
into
city
values
(103,
'秦皇岛市'
,5,0,2,3,1)
insert
into
city
values
(104,
'邯郸市'
,5,0,2,4,1)
insert
into
city
values
(105,
'邢台市'
,5,0,2,5,1)
insert
into
city
values
(106,
'保定市'
,5,0,2,6,1)
insert
into
city
values
(107,
'张家口市'
,5,0,2,7,1)
insert
into
city
values
(108,
'承德市'
,5,0,2,8,1)
insert
into
city
values
(109,
'沧州市'
,5,0,2,9,1)
insert
into
city
values
(110,
'廊坊市'
,5,0,2,10,1)
insert
into
city
values
(111,
'衡水市'
,5,0,2,11,1)
update
city
set
Child=11
where
cityid=5
----------------------------------------------------------------------------------------------------------------
--6山西省11个城市
insert
into
city
values
(121,
'太原市'
,6,0,2,1,1)
insert
into
city
values
(122,
'大同市'
,6,0,2,2,1)
insert
into
city
values
(123,
'阳泉市'
,6,0,2,3,1)
insert
into
city
values
(124,
'长治市'
,6,0,2,4,1)
insert
into
city
values
(125,
'晋城市'
,6,0,2,5,1)
insert
into
city
values
(126,
'朔州市'
,6,0,2,6,1)
insert
into
city
values
(127,
'晋中市'
,6,0,2,7,1)
insert
into
city
values
(128,
'运城市'
,6,0,2,8,1)
insert
into
city
values
(129,
'忻州市'
,6,0,2,9,1)
insert
into
city
values
(130,
'临汾市'
,6,0,2,10,1)
insert
into
city
values
(131,
'吕梁市'
,6,0,2,11,1)
update
city
set
Child=11
where
cityid=6
----------------------------------------------------------------------------------------------------------------
---7*省(*本岛和澎湖共设7市、16县,其中台北市和*市为“院辖市”,直属“行政院”,其余属*省;市下设区,县下设市(县辖市)、镇、乡,合称区市镇乡。,1)
insert
into
city
values
(141,
'台北市'
,7,0,2,1,1)
insert
into
city
values
(142,
'*市'
,7,0,2,2,1)
insert
into
city
values
(143,
'基隆市'
,7,0,2,3,1)
insert
into
city
values
(144,
'台中市'
,7,0,2,4,1)
insert
into
city
values
(145,
'台南市'
,7,0,2,5,1)
insert
into
city
values
(146,
'新竹市'
,7,0,2,6,1)
insert
into
city
values
(147,
'嘉义市'
,7,0,2,7,1)
insert
into
city
values
(148,
'台北县'
,7,0,2,8,1)
insert
into
city
values
(149,
'宜兰县'
,7,0,2,9,1)
insert
into
city
values
(150,
'桃园县'
,7,0,2,10,1)
insert
into
city
values
(151,
'新竹县'
,7,0,2,11,1)
insert
into
city
values
(152,
'苗栗县'
,7,0,2,12,1)
insert
into
city
values
(153,
'台中县'
,7,0,2,13,1)
insert
into
city
values
(154,
'彰化县'
,7,0,2,14,1)
insert
into
city
values
(155,
'南投县'
,7,0,2,15,1)
insert
into
city
values
(156,
'云林县'
,7,0,2,16,1)
insert
into
city
values
(157,
'嘉义县'
,7,0,2,17,1)
insert
into
city
values
(158,
'台南县'
,7,0,2,18,1)
insert
into
city
values
(159,
'*县'
,7,0,2,19,1)
insert
into
city
values
(160,
'屏东县'
,7,0,2,20,1)
insert
into
city
values
(161,
'澎湖县'
,7,0,2,21,1)
insert
into
city
values
(162,
'台东县'
,7,0,2,22,1)
insert
into
city
values
(163,
'花莲县'
,7,0,2,23,1)
update
city
set
Child=23
where
cityid=7
----------------------------------------------------------------------------------------------------------------
--8辽宁省(2006年,辖:14个地级市;56个市辖区、17个县级市、19个县、8个自治县。,1)
insert
into
city
values
(181,
'沈阳市'
,8,0,2,1,1)
insert
into
city
values
(182,
'大连市'
,8,0,2,2,1)
insert
into
city
values
(183,
'鞍山市'
,8,0,2,3,1)
insert
into
city
values
(184,
'抚顺市'
,8,0,2,4,1)
insert
into
city
values
(185,
'本溪市'
,8,0,2,5,1)
insert
into
city
values
(186,
'丹东市'
,8,0,2,6,1)
insert
into
city
values
(187,
'锦州市'
,8,0,2,7,1)
insert
into
city
values
(188,
'营口市'
,8,0,2,8,1)
insert
into
city
values
(189,
'阜新市'
,8,0,2,9,1)
insert
into
city
values
(190,
'辽阳市'
,8,0,2,10,1)
insert
into
city
values
(191,
'盘锦市'
,8,0,2,11,1)
insert
into
city
values
(192,
'铁岭市'
,8,0,2,12,1)
insert
into
city
values
(193,
'朝阳市'
,8,0,2,13,1)
insert
into
city
values
(194,
'葫芦岛市'
,8,0,2,14,1)
update
city
set
Child=14
where
cityid=8
----------------------------------------------------------------------------------------------------------------
--9吉林省(2006年,辖:8个地级市、1个自治州;20个市辖区、20个县级市、17个县、3个自治县。,1)
insert
into
city
values
(201,
'长春市'
,9,0,2,1,1)
insert
into
city
values
(202,
'吉林市'
,9,0,2,2,1)
insert
into
city
values
(203,
'四平市'
,9,0,2,3,1)
insert
into
city
values
(204,
'辽源市'
,9,0,2,4,1)
insert
into
city
values
(205,
'通化市'
,9,0,2,5,1)
insert
into
city
values
(206,
'白山市'
,9,0,2,6,1)
insert
into
city
values
(207,
'*市'
,9,0,2,7,1)
insert
into
city
values
(208,
'白城市'
,9,0,2,8,1)
insert
into
city
values
(209,
'延边朝鲜族自治州'
,9,0,2,9,1)
update
city
set
Child=9
where
cityid=9
----------------------------------------------------------------------------------------------------------------
--10黑龙江省(2006年,辖:12地级市、1地区;64市辖区、18县级市、45县、1自治县,1)
insert
into
city
values
(221,
'哈尔滨市'
,10,0,2,1,1)
insert
into
city
values
(222,
'齐齐哈尔市'
,10,0,2,2,1)
insert
into
city
values
(223,
'鹤 岗 市'
,10,0,2,3,1)
insert
into
city
values
(224,
'双鸭山市'
,10,0,2,4,1)
insert
into
city
values
(225,
'鸡 西 市'
,10,0,2,5,1)
insert
into
city
values
(226,
'大 庆 市'
,10,0,2,6,1)
insert
into
city
values
(227,
'伊 春 市'
,10,0,2,7,1)
insert
into
city
values
(228,
'牡丹江市'
,10,0,2,8,1)
insert
into
city
values
(229,
'佳木斯市'
,10,0,2,9,1)
insert
into
city
values
(230,
'七台河市'
,10,0,2,10,1)
insert
into
city
values
(231,
'黑 河 市'
,10,0,2,11,1)
insert
into
city
values
(232,
'绥 化 市'
,10,0,2,12,1)
insert
into
city
values
(233,
'大兴安岭地区'
,10,0,2,13,1)
update
city
set
Child=13
where
cityid=10
----------------------------------------------------------------------------------------------------------------
--11江苏省(2005年辖:13个地级市;54个市辖区、27个县级市、25个县,1)
insert
into
city
values
(241,
'南京市'
,11,0,2,1,1)
insert
into
city
values
(242,
'无锡市'
,11,0,2,2,1)
insert
into
city
values
(243,
'徐州市'
,11,0,2,3,1)
insert
into
city
values
(244,
'常州市'
,11,0,2,4,1)
insert
into
city
values
(245,
'苏州市'
,11,0,2,5,1)
insert
into
city
values
(246,
'南通市'
,11,0,2,6,1)
insert
into
city
values
(247,
'连云港市'
,11,0,2,7,1)
insert
into
city
values
(248,
'淮安市'
,11,0,2,8,1)
insert
into
city
values
(249,
'盐城市'
,11,0,2,9,1)
insert
into
city
values
(250,
'扬州市'
,11,0,2,10,1)
insert
into
city
values
(251,
'镇江市'
,11,0,2,11,1)
insert
into
city
values
(252,
'泰州市'
,11,0,2,12,1)
insert
into
city
values
(253,
'宿迁市'
,11,0,2,13,1)
update
city
set
Child=13
where
cityid=11
----------------------------------------------------------------------------------------------------------------
--12浙江省(2006年,辖:11个地级市;32个市辖区、22个县级市、35个县、1个自治县。,1)
insert
into
city
values
(281,
'杭州市'
,12,0,2,1,1)
insert
into
city
values
(282,
'宁波市'
,12,0,2,2,1)
insert
into
city
values
(283,
'温州市'
,12,0,2,3,1)
insert
into
city
values
(284,
'嘉兴市'
,12,0,2,4,1)
insert
into
city
values
(285,
'湖州市'
,12,0,2,5,1)
insert
into
city
values
(286,
'绍兴市'
,12,0,2,6,1)
insert
into
city
values
(287,
'金华市'
,12,0,2,7,1)
insert
into
city
values
(288,
'衢州市'
,12,0,2,8,1)
insert
into
city
values
(289,
'舟山市'
,12,0,2,9,1)
insert
into
city
values
(290,
'台州市'
,12,0,2,10,1)
insert
into
city
values
(291,
'丽水市'
,12,0,2,11,1)
update
city
set
Child=11
where
cityid=12
----------------------------------------------------------------------------------------------------------------
--13安徽省(2005年辖:17个地级市;44个市辖区、5县个级市、56个县。,1)
insert
into
city
values
(301,
'合肥市'
,13,0,2,1,1)
insert
into
city
values
(302,
'芜湖市'
,13,0,2,2,1)
insert
into
city
values
(303,
'蚌埠市'
,13,0,2,3,1)
insert
into
city
values
(304,
'淮南市'
,13,0,2,4,1)
insert
into
city
values
(305,
'马鞍山市'
,13,0,2,5,1)
insert
into
city
values
(306,
'淮北市'
,13,0,2,6,1)
insert
into
city
values
(307,
'铜陵市'
,13,0,2,7,1)
insert
into
city
values
(308,
'安庆市'
,13,0,2,8,1)
insert
into
city
values
(309,
'黄山市'
,13,0,2,9,1)
insert
into
city
values
(310,
'滁州市'
,13,0,2,10,1)
insert
into
city
values
(311,
'阜阳市'
,13,0,2,11,1)
insert
into
city
values
(312,
'宿州市'
,13,0,2,12,1)
insert
into
city
values
(313,
'巢湖市'
,13,0,2,13,1)
insert
into
city
values
(314,
'六安市'
,13,0,2,14,1)
insert
into
city
values
(315,
'亳州市'
,13,0,2,15,1)
insert
into
city
values
(316,
'池州市'
,13,0,2,16,1)
insert
into
city
values
(317,
'宣城市'
,13,0,2,17,1)
update
city
set
Child=17
where
cityid=13
----------------------------------------------------------------------------------------------------------------
--14福建省(2006年辖:9个地级市;26个市辖区、14个县级市、45个县。,1)
insert
into
city
values
(321,
'福州市'
,14,0,2,1,1)
insert
into
city
values
(322,
'厦门市'
,14,0,2,2,1)
insert
into
city
values
(323,
'莆田市'
,14,0,2,3,1)
insert
into
city
values
(324,
'三明市'
,14,0,2,4,1)
insert
into
city
values
(325,
'泉州市'
,14,0,2,5,1)
insert
into
city
values
(326,
'漳州市'
,14,0,2,6,1)
insert
into
city
values
(327,
'南平市'
,14,0,2,7,1)
insert
into
city
values
(328,
'龙岩市'
,14,0,2,8,1)
insert
into
city
values
(329,
'宁德市'
,14,0,2,9,1)
update
city
set
Child=9
where
cityid=14
----------------------------------------------------------------------------------------------------------------
--15江西省(2006年全省辖:11个地级市;19个市辖区、10个县级市、70个县。,1)
insert
into
city
values
(341,
'南昌市'
,15,0,2,1,1)
insert
into
city
values
(342,
'景德镇市'
,15,0,2,2,1)
insert
into
city
values
(343,
'萍乡市'
,15,0,2,3,1)
insert
into
city
values
(344,
'九江市'
,15,0,2,4,1)
insert
into
city
values
(345,
'新余市'
,15,0,2,5,1)
insert
into
city
values
(346,
'鹰潭市'
,15,0,2,6,1)
insert
into
city
values
(347,
'赣州市'
,15,0,2,7,1)
insert
into
city
values
(348,
'吉安市'
,15,0,2,8,1)
insert
into
city
values
(349,
'宜春市'
,15,0,2,9,1)
insert
into
city
values
(350,
'抚州市'
,15,0,2,10,1)
insert
into
city
values
(351,
'上饶市'
,15,0,2,11,1)
update
city
set
Child=11
where
cityid=15
----------------------------------------------------------------------------------------------------------------
--16山东省(2005年,辖:17个地级市;49个市辖区、31个县级市、60个县。,1)
insert
into
city
values
(361,
'济南市'
,16,0,2,1,1)
insert
into
city
values
(362,
'青岛市'
,16,0,2,2,1)
insert
into
city
values
(363,
'淄博市'
,16,0,2,3,1)
insert
into
city
values
(364,
'枣庄市'
,16,0,2,4,1)
insert
into
city
values
(365,
'东营市'
,16,0,2,5,1)
insert
into
city
values
(366,
'烟台市'
,16,0,2,6,1)
insert
into
city
values
(367,
'潍坊市'
,16,0,2,7,1)
insert
into
city
values
(368,
'济宁市'
,16,0,2,8,1)
insert
into
city
values
(369,
'泰安市'
,16,0,2,9,1)
insert
into
city
values
(370,
'威海市'
,16,0,2,10,1)
insert
into
city
values
(371,
'日照市'
,16,0,2,11,1)
insert
into
city
values
(372,
'莱芜市'
,16,0,2,12,1)
insert
into
city
values
(373,
'临沂市'
,16,0,2,13,1)
insert
into
city
values
(374,
'德州市'
,16,0,2,14,1)
insert
into
city
values
(375,
'聊城市'
,16,0,2,15,1)
insert
into
city
values
(376,
'滨州市'
,16,0,2,16,1)
insert
into
city
values
(377,
'菏泽市'
,16,0,2,17,1)
update
city
set
Child=17
where
cityid=16
----------------------------------------------------------------------------------------------------------------
--17河南省(2005年辖:17个地级市;50个市辖区、21个县级市、88个县。)
insert
into
city
values
(401,
'郑州市'
,17,0,2,1,1)
insert
into
city
values
(402,
'开封市'
,17,0,2,2,1)
insert
into
city
values
(403,
'洛阳市'
,17,0,2,3,1)
insert
into
city
values
(404,
'平顶山市'
,17,0,2,4,1)
insert
into
city
values
(405,
'安阳市'
,17,0,2,5,1)
insert
into
city
values
(406,
'鹤壁市'
,17,0,2,6,1)
insert
into
city
values
(407,
'新乡市'
,17,0,2,7,1)
insert
into
city
values
(408,
'焦作市'
,17,0,2,8,1)
insert
into
city
values
(409,
'濮阳市'
,17,0,2,9,1)
insert
into
city
values
(410,
'许昌市'
,17,0,2,10,1)
insert
into
city
values
(411,
'漯河市'
,17,0,2,11,1)
insert
into
city
values
(412,
'三门峡市'
,17,0,2,12,1)
insert
into
city
values
(413,
'南阳市'
,17,0,2,13,1)
insert
into
city
values
(414,
'商丘市'
,17,0,2,14,1)
insert
into
city
values
(415,
'信阳市'
,17,0,2,15,1)
insert
into
city
values
(416,
'周口市'
,17,0,2,16,1)
insert
into
city
values
(417,
'驻马店市'
,17,0,2,17,1)
insert
into
city
values
(418,
'济源市'
,17,0,2,18,1)
update
city
set
Child=18
where
cityid=17
----------------------------------------------------------------------------------------------------------------
--18湖北省(截至2005年12月31日,全省辖13个地级单位(12个地级市、1个自治州);102县级单位(38个市辖区、24个县级市、37个县、2个自治县、1个林区),共有1220个乡级单位(277个街道、733个镇、210个乡)。)
insert
into
city
values
(421,
'武汉市'
,18,0,2,1,1)
insert
into
city
values
(422,
'黄石市'
,18,0,2,2,1)
insert
into
city
values
(423,
'十堰市'
,18,0,2,3,1)
insert
into
city
values
(424,
'荆州市'
,18,0,2,4,1)
insert
into
city
values
(425,
'宜昌市'
,18,0,2,5,1)
insert
into
city
values
(426,
'襄樊市'
,18,0,2,6,1)
insert
into
city
values
(427,
'鄂州市'
,18,0,2,7,1)
insert
into
city
values
(428,
'荆门市'
,18,0,2,8,1)
insert
into
city
values
(429,
'孝感市'
,18,0,2,9,1)
insert
into
city
values
(430,
'黄冈市'
,18,0,2,10,1)
insert
into
city
values
(431,
'咸宁市'
,18,0,2,11,1)
insert
into
city
values
(432,
'随州市'
,18,0,2,12,1)
insert
into
city
values
(433,
'仙桃市'
,18,0,2,13,1)
insert
into
city
values
(434,
'天门市'
,18,0,2,14,1)
insert
into
city
values
(435,
'潜江市'
,18,0,2,15,1)
insert
into
city
values
(436,
'神农架林区'
,18,0,2,16,1)
insert
into
city
values
(437,
'恩施土家族苗族自治州'
,18,0,2,17,1)
update
city
set
Child=17
where
cityid=18
----------------------------------------------------------------------------------------------------------------
--19湖南省(2005年辖:13个地级市、1个自治州;34个市辖区、16个县级市、65个县、7个自治县。)
insert
into
city
values
(441,
'长沙市'
,19,0,2,1,1)
insert
into
city
values
(442,
'株洲市'
,19,0,2,2,1)
insert
into
city
values
(443,
'湘潭市'
,19,0,2,3,1)
insert
into
city
values
(444,
'衡阳市'
,19,0,2,4,1)
insert
into
city
values
(445,
'邵阳市'
,19,0,2,5,1)
insert
into
city
values
(446,
'岳阳市'
,19,0,2,6,1)
insert
into
city
values
(447,
'常德市'
,19,0,2,7,1)
insert
into
city
values
(448,
'张家界市'
,19,0,2,8,1)
insert
into
city
values
(449,
'益阳市'
,19,0,2,9,1)
insert
into
city
values
(450,
'郴州市'
,19,0,2,10,1)
insert
into
city
values
(451,
'永州市'
,19,0,2,11,1)
insert
into
city
values
(452,
'怀化市'
,19,0,2,12,1)
insert
into
city
values
(453,
'娄底市'
,19,0,2,13,1)
insert
into
city
values
(454,
'湘西土家族苗族自治州'
,19,0,2,14,1)
update
city
set
Child=14
where
cityid=19
----------------------------------------------------------------------------------------------------------------
--20广东省(截至2005年12月31日,广东省辖:21个地级市,54个市辖区、23个县级市、41个县、3个自治县,429个街道办事处、1145个镇、4个乡、7个民族乡。)
insert
into
city
values
(455,
'广州市'
,20,0,2,1,1)
insert
into
city
values
(456,
'深圳市'
,20,0,2,2,1)
insert
into
city
values
(457,
'珠海市'
,20,0,2,3,1)
insert
into
city
values
(458,
'汕头市'
,20,0,2,4,1)
insert
into
city
values
(459,
'韶关市'
,20,0,2,5,1)
insert
into
city
values
(460,
'佛山市'
,20,0,2,6,1)
insert
into
city
values
(461,
'江门市'
,20,0,2,7,1)
insert
into
city
values
(462,
'湛江市'
,20,0,2,8,1)
insert
into
city
values
(463,
'茂名市'
,20,0,2,9,1)
insert
into
city
values
(464,
'肇庆市'
,20,0,2,10,1)
insert
into
city
values
(465,
'惠州市'
,20,0,2,11,1)
insert
into
city
values
(466,
'梅州市'
,20,0,2,12,1)
insert
into
city
values
(467,
'汕尾市'
,20,0,2,13,1)
insert
into
city
values
(468,
'河源市'
,20,0,2,14,1)
insert
into
city
values
(469,
'阳江市'
,20,0,2,15,1)
insert
into
city
values
(470,
'清远市'
,20,0,2,16,1)
insert
into
city
values
(485,
'东莞市'
,20,0,2,17,1)
insert
into
city
values
(486,
'中山市'
,20,0,2,18,1)
insert
into
city
values
(487,
'潮州市'
,20,0,2,19,1)
insert
into
city
values
(488,
'揭阳市'
,20,0,2,20,1)
insert
into
city
values
(489,
'云浮市'
,20,0,2,21,1)
update
city
set
Child=21
where
cityid=20
----------------------------------------------------------------------------------------------------------------
--21甘肃省(2006年辖:12个地级市、2个自治州;17个市辖区、4个县级市、58个县、7个自治县。)
insert
into
city
values
(471,
'兰州市'
,21,0,2,1,1)
insert
into
city
values
(472,
'金昌市'
,21,0,2,2,1)
insert
into
city
values
(473,
'白银市'
,21,0,2,3,1)
insert
into
city
values
(474,
'天水市'
,21,0,2,4,1)
insert
into
city
values
(475,
'嘉峪关市'
,21,0,2,5,1)
insert
into
city
values
(476,
'武威市'
,21,0,2,6,1)
insert
into
city
values
(477,
'张掖市'
,21,0,2,7,1)
insert
into
city
values
(478,
'平凉市'
,21,0,2,8,1)
insert
into
city
values
(479,
'酒泉市'
,21,0,2,9,1)
insert
into
city
values
(480,
'庆阳市'
,21,0,2,10,1)
insert
into
city
values
(481,
'定西市'
,21,0,2,11,1)
insert
into
city
values
(482,
'陇南市'
,21,0,2,12,1)
insert
into
city
values
(483,
'临夏回族自治州'
,21,0,2,13,1)
insert
into
city
values
(484,
'甘南藏族自治州'
,21,0,2,14,1)
update
city
set
Child=14
where
cityid=21
----------------------------------------------------------------------------------------------------------------
--22四川省(2006年辖:18个地级市、3个自治州;43个市辖区、14个县级市、120个县、4个自治县。)
insert
into
city
values
(491,
'成都市'
,22,0,2,1,1)
insert
into
city
values
(492,
'自贡市'
,22,0,2,2,1)
insert
into
city
values
(493,
'攀枝花市'
,22,0,2,3,1)
insert
into
city
values
(494,
'泸州市'
,22,0,2,4,1)
insert
into
city
values
(495,
'德阳市'
,22,0,2,5,1)
insert
into
city
values
(496,
'绵阳市'
,22,0,2,6,1)
insert
into
city
values
(497,
'广元市'
,22,0,2,7,1)
insert
into
city
values
(498,
'遂宁市'
,22,0,2,8,1)
insert
into
city
values
(499,
'内江市'
,22,0,2,9,1)
insert
into
city
values
(500,
'乐山市'
,22,0,2,10,1)
insert
into
city
values
(501,
'南充市'
,22,0,2,11,1)
insert
into
city
values
(502,
'眉山市'
,22,0,2,12,1)
insert
into
city
values
(503,
'宜宾市'
,22,0,2,13,1)
insert
into
city
values
(504,
'广安市'
,22,0,2,14,1)
insert
into
city
values
(505,
'达州市'
,22,0,2,15,1)
insert
into
city
values
(506,
'雅安市'
,22,0,2,16,1)
insert
into
city
values
(507,
'巴中市'
,22,0,2,17,1)
insert
into
city
values
(508,
'资阳市'
,22,0,2,18,1)
insert
into
city
values
(509,
'阿坝藏族羌族自治州'
,22,0,2,19,1)
insert
into
city
values
(510,
'甘孜藏族自治州'
,22,0,2,20,1)
insert
into
city
values
(511,
'凉山彝族自治州'
,22,0,2,21,1)
update
city
set
Child=21
where
cityid=22
----------------------------------------------------------------------------------------------------------------
--23贵州省(2006年辖:4个地级市、2个地区、3个自治州;10个市辖区、9个县级市、56个县、11个自治县、2个特区。,1)
insert
into
city
values
(521,
'贵阳市'
,23,0,2,1,1)
insert
into
city
values
(522,
'六盘水市'
,23,0,2,2,1)
insert
into
city
values
(523,
'遵义市'
,23,0,2,3,1)
insert
into
city
values
(524,
'安顺市'
,23,0,2,4,1)
insert
into
city
values
(525,
'铜仁地区'
,23,0,2,5,1)
insert
into
city
values
(526,
'毕节地区'
,23,0,2,6,1)
insert
into
city
values
(527,
'黔西南布依族苗族自治州'
,23,0,2,7,1)
insert
into
city
values
(528,
'黔东南苗族侗族自治州'
,23,0,2,8,1)
insert
into
city
values
(529,
'黔南布依族苗族自治州'
,23,0,2,9,1)
update
city
set
Child=9
where
cityid=23
----------------------------------------------------------------------------------------------------------------
--24海南省(2003-2005年 全省有2个地级市,6个县级市,4个县,6个民族自治县,4个市辖区,1个办事处(西南中沙群岛办事处,县级)。,1)
insert
into
city
values
(541,
'海口市'
,24,0,2,1,1)
insert
into
city
values
(542,
'三亚市'
,24,0,2,2,1)
insert
into
city
values
(543,
'五指山市'
,24,0,2,3,1)
insert
into
city
values
(544,
'琼海市'
,24,0,2,4,1)
insert
into
city
values
(545,
'儋州市'
,24,0,2,5,1)
insert
into
city
values
(546,
'文昌市'
,24,0,2,6,1)
insert
into
city
values
(547,
'万宁市'
,24,0,2,7,1)
insert
into
city
values
(548,
'东方市'
,24,0,2,8,1)
insert
into
city
values
(549,
'澄迈县'
,24,0,2,9,1)
insert
into
city
values
(550,
'定安县'
,24,0,2,10,1)
insert
into
city
values
(551,
'屯昌县'
,24,0,2,11,1)
insert
into
city
values
(552,
'临高县'
,24,0,2,12,1)
insert
into
city
values
(553,
'白沙黎族自治县'
,24,0,2,13,1)
insert
into
city
values
(554,
'昌江黎族自治县'
,24,0,2,14,1)
insert
into
city
values
(555,
'乐东黎族自治县'
,24,0,2,15,1)
insert
into
city
values
(556,
'陵水黎族自治县'
,24,0,2,16,1)
insert
into
city
values
(557,
'保亭黎族苗族自治县'
,24,0,2,17,1)
insert
into
city
values
(558,
'琼中黎族苗族自治县'
,24,0,2,18,1)
update
city
set
Child=18
where
cityid=24
----------------------------------------------------------------------------------------------------------------
--25云南省(2006年辖:8个地级市、8个自治州;12个市辖区、9个县级市、79个县、29个自治县。,1)
insert
into
city
values
(571,
'昆明市'
,25,0,2,1,1)
insert
into
city
values
(572,
'曲靖市'
,25,0,2,2,1)
insert
into
city
values
(573,
'玉溪市'
,25,0,2,3,1)
insert
into
city
values
(574,
'保山市'
,25,0,2,4,1)
insert
into
city
values
(575,
'昭通市'
,25,0,2,5,1)
insert
into
city
values
(576,
'丽江市'
,25,0,2,6,1)
insert
into
city
values
(577,
'思茅市'
,25,0,2,7,1)
insert
into
city
values
(578,
'临沧市'
,25,0,2,8,1)
insert
into
city
values
(579,
'文山壮族苗族自治州'
,25,0,2,9,1)
insert
into
city
values
(580,
'红河哈尼族彝族自治州'
,25,0,2,10,1)
insert
into
city
values
(581,
'西双版纳傣族自治州'
,25,0,2,11,1)
insert
into
city
values
(582,
'楚雄彝族自治州'
,25,0,2,12,1)
insert
into
city
values
(583,
'大理白族自治州'
,25,0,2,13,1)
insert
into
city
values
(584,
'德宏傣族景颇族自治州'
,25,0,2,14,1)
insert
into
city
values
(585,
'怒江傈傈族自治州'
,25,0,2,15,1)
insert
into
city
values
(586,
'迪庆藏族自治州'
,25,0,2,16,1)
update
city
set
Child=16
where
cityid=25
----------------------------------------------------------------------------------------------------------------
--26青海省(2006年辖:1个地级市、1个地区、6个自治州;4个市辖区、2个县级市、30个县、7个自治县。,1)
insert
into
city
values
(601,
'西宁市'
,26,0,2,1,1)
insert
into
city
values
(602,
'海东地区'
,26,0,2,2,1)
insert
into
city
values
(603,
'海北藏族自治州'
,26,0,2,3,1)
insert
into
city
values
(604,
'黄南藏族自治州'
,26,0,2,4,1)
insert
into
city
values
(605,
'海南藏族自治州'
,26,0,2,5,1)
insert
into
city
values
(606,
'果洛藏族自治州'
,26,0,2,6,1)
insert
into
city
values
(607,
'玉树藏族自治州'
,26,0,2,7,1)
insert
into
city
values
(608,
'海西蒙古族藏族自治州'
,26,0,2,8,1)
update
city
set
Child=8
where
cityid=26
----------------------------------------------------------------------------------------------------------------
--27陕西省(2006年辖:10个地级市;24个市辖区、3个县级市、80个县。,1)
insert
into
city
values
(621,
'西安市'
,27,0,2,1,1)
insert
into
city
values
(622,
'铜川市'
,27,0,2,2,1)
insert
into
city
values
(623,
'宝鸡市'
,27,0,2,3,1)
insert
into
city
values
(624,
'咸阳市'
,27,0,2,4,1)
insert
into
city
values
(625,
'渭南市'
,27,0,2,5,1)
insert
into
city
values
(626,
'延安市'
,27,0,2,6,1)
insert
into
city
values
(627,
'汉中市'
,27,0,2,7,1)
insert
into
city
values
(628,
'榆林市'
,27,0,2,8,1)
insert
into
city
values
(629,
'安康市'
,27,0,2,9,1)
insert
into
city
values
(630,
'商洛市'
,27,0,2,10,1)
update
city
set
Child=10
where
cityid=27
----------------------------------------------------------------------------------------------------------------
--28广西壮族自治区(2005年辖:14个地级市;34个市辖区、7个县级市、56个县、12个自治县。,1)
insert
into
city
values
(641,
'南宁市'
,28,0,2,1,1)
insert
into
city
values
(642,
'柳州市'
,28,0,2,2,1)
insert
into
city
values
(643,
'桂林市'
,28,0,2,3,1)
insert
into
city
values
(644,
'梧州市'
,28,0,2,4,1)
insert
into
city
values
(645,
'北海市'
,28,0,2,5,1)
insert
into
city
values
(646,
'防城港市'
,28,0,2,6,1)
insert
into
city
values
(647,
'钦州市'
,28,0,2,7,1)
insert
into
city
values
(648,
'贵港市'
,28,0,2,8,1)
insert
into
city
values
(649,
'玉林市'
,28,0,2,9,1)
insert
into
city
values
(650,
'百色市'
,28,0,2,10,1)
insert
into
city
values
(651,
'贺州市'
,28,0,2,11,1)
insert
into
city
values
(652,
'河池市'
,28,0,2,12,1)
insert
into
city
values
(653,
'来宾市'
,28,0,2,13,1)
insert
into
city
values
(654,
'崇左市'
,28,0,2,14,1)
update
city
set
Child=14
where
cityid=28
----------------------------------------------------------------------------------------------------------------
--29*自治区(2005年辖:1个地级市、6个地区;1个市辖区、1个县级市、71个县。,1)
insert
into
city
values
(671,
'拉萨市'
,29,0,2,1,1)
insert
into
city
values
(672,
'那曲地区'
,29,0,2,2,1)
insert
into
city
values
(673,
'昌都地区'
,29,0,2,3,1)
insert
into
city
values
(674,
'山南地区'
,29,0,2,4,1)
insert
into
city
values
(675,
'日喀则地区'
,29,0,2,5,1)
insert
into
city
values
(676,
'阿里地区'
,29,0,2,6,1)
insert
into
city
values
(677,
'林芝地区'
,29,0,2,7,1)
update
city
set
Child=7
where
cityid=29
----------------------------------------------------------------------------------------------------------------
--30宁夏回族自治区
insert
into
city
values
(681,
'银川市'
,30,0,2,1,1)
insert
into
city
values
(682,
'石嘴山市'
,30,0,2,2,1)
insert
into
city
values
(683,
'吴忠市'
,30,0,2,3,1)
insert
into
city
values
(684,
'固原市'
,30,0,2,4,1)
insert
into
city
values
(685,
'中卫市'
,30,0,2,5,1)
update
city
set
Child=5
where
cityid=30
----------------------------------------------------------------------------------------------------------------
--31**自治区(2005年辖:2个地级市、7个地区、5个自治州;11个市辖区、20个县级市、62个县、6个自治县,1)
insert
into
city
values
(691,
'乌鲁木齐市'
,31,0,2,1,1)
insert
into
city
values
(692,
'克拉玛依市'
,31,0,2,2,1)
insert
into
city
values
(693,
'石河子市 '
,31,0,2,3,1)
insert
into
city
values
(694,
'阿拉尔市'
,31,0,2,4,1)
insert
into
city
values
(695,
'图木舒克市'
,31,0,2,5,1)
insert
into
city
values
(696,
'五家渠市'
,31,0,2,6,1)
insert
into
city
values
(697,
'吐鲁番市'
,31,0,2,7,1)
insert
into
city
values
(698,
'阿克苏市'
,31,0,2,8,1)
insert
into
city
values
(699,
'喀什市'
,31,0,2,9,1)
insert
into
city
values
(700,
'哈密市'
,31,0,2,10,1)
insert
into
city
values
(701,
'和田市'
,31,0,2,11,1)
insert
into
city
values
(702,
'阿图什市'
,31,0,2,12,1)
insert
into
city
values
(703,
'库尔勒市'
,31,0,2,13,1)
insert
into
city
values
(704,
'昌吉市 '
,31,0,2,14,1)
insert
into
city
values
(705,
'阜康市'
,31,0,2,15,1)
insert
into
city
values
(706,
'米泉市'
,31,0,2,16,1)
insert
into
city
values
(707,
'博乐市'
,31,0,2,17,1)
insert
into
city
values
(708,
'伊宁市'
,31,0,2,18,1)
insert
into
city
values
(709,
'奎屯市'
,31,0,2,19,1)
insert
into
city
values
(710,
'塔城市'
,31,0,2,20,1)
insert
into
city
values
(711,
'乌苏市'
,31,0,2,21,1)
insert
into
city
values
(712,
'阿勒泰市'
,31,0,2,22,1)
update
city
set
Child=22
where
cityid=31
----------------------------------------------------------------------------------------------------------------
--33内蒙古自治区(2006年,辖:9个地级市、3个盟;21个市辖区、11个县级市、17个县、49个旗、3个自治旗。,1)
insert
into
city
values
(721,
'呼和浩特市'
,32,0,2,1,1)
insert
into
city
values
(722,
'包头市'
,32,0,2,2,1)
insert
into
city
values
(723,
'乌海市'
,32,0,2,3,1)
insert
into
city
values
(724,
'赤峰市'
,32,0,2,4,1)
insert
into
city
values
(725,
'通辽市'
,32,0,2,5,1)
insert
into
city
values
(726,
'鄂尔多斯市'
,32,0,2,6,1)
insert
into
city
values
(727,
'呼伦贝尔市'
,32,0,2,7,1)
insert
into
city
values
(728,
'巴彦淖尔市'
,32,0,2,8,1)
insert
into
city
values
(729,
'乌兰察布市'
,32,0,2,9,1)
insert
into
city
values
(730,
'锡林郭勒盟'
,32,0,2,10,1)
insert
into
city
values
(731,
'兴安盟'
,32,0,2,11,1)
insert
into
city
values
(732,
'阿拉善盟'
,32,0,2,12,1)
update
city
set
Child=12
where
cityid=32
相关文章
- 数据库表设计时一对一关系存在的必要性 数据库一对一、一对多、多对多设计 面试逻辑题3.31 sql server 查询某个表被哪些存储过程调用 DataTable根据字段去重 .Net Core Cors中间件解析 分析MySQL中哪些情况下数据库索引会失效
- mysql数据库上使用定时器定时执行存储过程建表(月表)
- 【SQL Server高可用性】数据库复制:修改表结构、新增表、新增存储过程 会被复制到订阅服务器?
- Unity3D 连接MySQL数据库笔记3-SQL建表
- SQL 数据库 省市区三级表 建立语句
- SQL语句判断指定的数据库、表、字段、存储过程是否存在
- SQL语句查询数据库的触发器、存储过程、视图以及表的SQL语句
- mysql数据库 sql语句学习笔记1 建库,建表,改表
- sql 数据库建表
- 如何导出MYSQL数据库中的所有表中建表sql语句以及表中的数据