海洋工作室——网站建设专家:省市数据库【T-SQL版本】
1 --创建promary表
2 create table promary
3 (
4 proID int primary key,
5 proName varchar(50) not null
6 )
7 ----------------------------------------------------------------------------------------------------------------------------------------
8 --中国34个省级行政单位 23个省 5个自治区 4个直辖市 2特别行政区
9 insert into promary values(1,'北京市')
10 insert into promary values(2,'天津市')
11 insert into promary values(3,'上海市')
12 insert into promary values(4,'重庆市')
13 insert into promary values(5,'河北省')
14 insert into promary values(6,'山西省')
15 insert into promary values(7,'台湾省')
16 insert into promary values(8,'辽宁省')
17 insert into promary values(9,'吉林省')
18 insert into promary values(10,'黑龙江省')
19 insert into promary values(11,'江苏省')
20 insert into promary values(12,'浙江省')
21 insert into promary values(13,'安徽省')
22 insert into promary values(14,'福建省')
23 insert into promary values(15,'江西省')
24 insert into promary values(16,'山东省')
25 insert into promary values(17,'河南省')
26 insert into promary values(18,'湖北省')
27 insert into promary values(19,'湖南省')
28 insert into promary values(20,'广东省')
29 insert into promary values(21,'甘肃省')
30 insert into promary values(22,'四川省')
31 insert into promary values(24,'贵州省')
32 insert into promary values(25,'海南省')
33 insert into promary values(26,'云南省')
34 insert into promary values(27,'青海省')
35 insert into promary values(28,'陕西省')
36 insert into promary values(29,'广西壮族自治区')
37 insert into promary values(30,'西藏自治区')
38 insert into promary values(31,'宁夏回族自治区')
39 insert into promary values(32,'新疆维吾尔自治区')
40 insert into promary values(33,'内蒙古自治区')
41 insert into promary values(34,'澳门特别行政区')
42 insert into promary values(35,'香港特别行政区')
43 ----------------------------------------------------------------------------------------------------------------------------------------
44 --创建city表
45 create table city
46 (
47 cityID int not null,
48 cityName varchar(50) primary key,
49 proID int foreign key references promary(proID)
50 )
51
52 ----------------------------------------------------------------------------------------------------------------------------------------
53 --插入各个省的城市数据
54 --4个直辖市
55 insert into city values(1,'北京市',1)
56 insert into city values(1,'天津市',2)
57 insert into city values(1,'上海市',3)
58 insert into city values(1,'重庆市',4)
59 --5河北省(2005年辖:11个地级市,36个市辖区、22个县级市、108个县、6个自治县)
60 insert into city values(1,'石家庄市',5)
61 insert into city values(2,'唐山市',5)
62 insert into city values(3,'秦皇岛市',5)
63 insert into city values(4,'邯郸市',5)
64 insert into city values(5,'邢台市',5)
65 insert into city values(6,'保定市',5)
66 insert into city values(7,'张家口市',5)
67 insert into city values(8,'承德市',5)
68 insert into city values(9,'沧州市',5)
69 insert into city values(10,'廊坊市',5)
70 insert into city values(11,'衡水市',5)
71 --6山西省11个城市
72 insert into city values(1,'太原市',6)
73 insert into city values(2,'大同市',6)
74 insert into city values(3,'阳泉市',6)
75 insert into city values(4,'长治市',6)
76 insert into city values(5,'晋城市',6)
77 insert into city values(6,'朔州市',6)
78 insert into city values(7,'晋中市',6)
79 insert into city values(8,'运城市',6)
80 insert into city values(9,'忻州市',6)
81 insert into city values(10,'临汾市',6)
82 insert into city values(11,'吕梁市',6)
83 --7台湾省(台湾本岛和澎湖共设7市、16县,其中台北市和高雄市为“院辖市”,直属“行政院”,其余属台湾省;市下设区,县下设市(县辖市)、镇、乡,合称区市镇乡。)
84 insert into city values(1,'台北市',7)
85 insert into city values(2,'高雄市',7)
86 insert into city values(3,'基隆市',7)
87 insert into city values(4,'台中市',7)
88 insert into city values(5,'台南市',7)
89 insert into city values(6,'新竹市',7)
90 insert into city values(7,'嘉义市',7)
91 insert into city values(8,'台北县',7)
92 insert into city values(9,'宜兰县',7)
93 insert into city values(10,'桃园县',7)
94 insert into city values(11,'新竹县',7)
95 insert into city values(12,'苗栗县',7)
96 insert into city values(13,'台中县',7)
97 insert into city values(14,'彰化县',7)
98 insert into city values(15,'南投县',7)
99 insert into city values(16,'云林县',7)
100 insert into city values(17,'嘉义县',7)
101 insert into city values(18,'台南县',7)
102 insert into city values(19,'高雄县',7)
103 insert into city values(20,'屏东县',7)
104 insert into city values(21,'澎湖县',7)
105 insert into city values(22,'台东县',7)
106 insert into city values(23,'花莲县',7)
107 --8辽宁省(2006年,辖:14个地级市;56个市辖区、17个县级市、19个县、8个自治县。)
108 insert into city values(1,'沈阳市',8)
109 insert into city values(2,'大连市',8)
110 insert into city values(3,'鞍山市',8)
111 insert into city values(4,'抚顺市',8)
112 insert into city values(5,'本溪市',8)
113 insert into city values(6,'丹东市',8)
114 insert into city values(7,'锦州市',8)
115 insert into city values(8,'营口市',8)
116 insert into city values(9,'阜新市',8)
117 insert into city values(10,'辽阳市',8)
118 insert into city values(11,'盘锦市',8)
119 insert into city values(12,'铁岭市',8)
120 insert into city values(13,'朝阳市',8)
121 insert into city values(14,'葫芦岛市',8)
122 --9吉林省(2006年,辖:8个地级市、1个自治州;20个市辖区、20个县级市、17个县、3个自治县。)
123 insert into city values(1,'长春市',9)
124 insert into city values(2,'吉林市',9)
125 insert into city values(3,'四平市',9)
126 insert into city values(4,'辽源市',9)
127 insert into city values(5,'通化市',9)
128 insert into city values(6,'白山市',9)
129 insert into city values(7,'松原市',9)
130 insert into city values(8,'白城市',9)
131 insert into city values(9,'延边朝鲜族自治州',9)
132 --10黑龙江省(2006年,辖:12地级市、1地区;64市辖区、18县级市、45县、1自治县)
133 insert into city values(1,'哈尔滨市',10)
134 insert into city values(2,'齐齐哈尔市',10)
135 insert into city values(3,'鹤 岗 市',10)
136 insert into city values(4,'双鸭山市',10)
137 insert into city values(5,'鸡 西 市',10)
138 insert into city values(6,'大 庆 市',10)
139 insert into city values(7,'伊 春 市',10)
140 insert into city values(8,'牡丹江市',10)
141 insert into city values(9,'佳木斯市',10)
142 insert into city values(10,'七台河市',10)
143 insert into city values(11,'黑 河 市',10)
144 insert into city values(12,'绥 化 市',10)
145 insert into city values(13,'大兴安岭地区',10)
146 --11江苏省(2005年辖:13个地级市;54个市辖区、27个县级市、25个县)
147 insert into city values(1,'南京市',11)
148 insert into city values(2,'无锡市',11)
149 insert into city values(3,'徐州市',11)
150 insert into city values(4,'常州市',11)
151 insert into city values(5,'苏州市',11)
152 insert into city values(6,'南通市',11)
153 insert into city values(7,'连云港市',11)
154 insert into city values(8,'淮安市',11)
155 insert into city values(9,'盐城市',11)
156 insert into city values(10,'扬州市',11)
157 insert into city values(11,'镇江市',11)
158 insert into city values(12,'泰州市',11)
159 insert into city values(13,'宿迁市',11)
160 --12浙江省(2006年,辖:11个地级市;32个市辖区、22个县级市、35个县、1个自治县。)
161 insert into city values(1,'杭州市',12)
162 insert into city values(2,'宁波市',12)
163 insert into city values(3,'温州市',12)
164 insert into city values(4,'嘉兴市',12)
165 insert into city values(5,'湖州市',12)
166 insert into city values(6,'绍兴市',12)
167 insert into city values(7,'金华市',12)
168 insert into city values(8,'衢州市',12)
169 insert into city values(9,'舟山市',12)
170 insert into city values(10,'台州市',12)
171 insert into city values(11,'丽水市',12)
172 --13安徽省(2005年辖:17个地级市;44个市辖区、5县个级市、56个县。)
173 insert into city values(1,'合肥市',13)
174 insert into city values(2,'芜湖市',13)
175 insert into city values(3,'蚌埠市',13)
176 insert into city values(4,'淮南市',13)
177 insert into city values(5,'马鞍山市',13)
178 insert into city values(6,'淮北市',13)
179 insert into city values(7,'铜陵市',13)
180 insert into city values(8,'安庆市',13)
181 insert into city values(9,'黄山市',13)
182 insert into city values(10,'滁州市',13)
183 insert into city values(11,'阜阳市',13)
184 insert into city values(12,'宿州市',13)
185 insert into city values(13,'巢湖市',13)
186 insert into city values(14,'六安市',13)
187 insert into city values(15,'亳州市',13)
188 insert into city values(16,'池州市',13)
189 insert into city values(17,'宣城市',13)
190 --14福建省(2006年辖:9个地级市;26个市辖区、14个县级市、45个县。)
191 insert into city values(1,'福州市',14)
192 insert into city values(2,'厦门市',14)
193 insert into city values(3,'莆田市',14)
194 insert into city values(4,'三明市',14)
195 insert into city values(5,'泉州市',14)
196 insert into city values(6,'漳州市',14)
197 insert into city values(7,'南平市',14)
198 insert into city values(8,'龙岩市',14)
199 insert into city values(9,'宁德市',14)
200 --15江西省(2006年全省辖:11个地级市;19个市辖区、10个县级市、70个县。)
201 insert into city values(1,'南昌市',15)
202 insert into city values(2,'景德镇市',15)
203 insert into city values(3,'萍乡市',15)
204 insert into city values(4,'九江市',15)
205 insert into city values(5,'新余市',15)
206 insert into city values(6,'鹰潭市',15)
207 insert into city values(7,'赣州市',15)
208 insert into city values(8,'吉安市',15)
209 insert into city values(9,'宜春市',15)
210 insert into city values(10,'抚州市',15)
211 insert into city values(11,'上饶市',15)
212 --16山东省(2005年,辖:17个地级市;49个市辖区、31个县级市、60个县。)
213 insert into city values(1,'济南市',16)
214 insert into city values(2,'青岛市',16)
215 insert into city values(3,'淄博市',16)
216 insert into city values(4,'枣庄市',16)
217 insert into city values(5,'东营市',16)
218 insert into city values(6,'烟台市',16)
219 insert into city values(7,'潍坊市',16)
220 insert into city values(8,'济宁市',16)
221 insert into city values(9,'泰安市',16)
222 insert into city values(10,'威海市',16)
223 insert into city values(11,'日照市',16)
224 insert into city values(12,'莱芜市',16)
225 insert into city values(13,'临沂市',16)
226 insert into city values(14,'德州市',16)
227 insert into city values(15,'聊城市',16)
228 insert into city values(16,'滨州市',16)
229 insert into city values(17,'菏泽市',16)
230 --17河南省(2005年辖:17个地级市;50个市辖区、21个县级市、88个县。)
231 insert into city values(1,'郑州市',17)
232 insert into city values(2,'开封市',17)
233 insert into city values(3,'洛阳市',17)
234 insert into city values(4,'平顶山市',17)
235 insert into city values(5,'安阳市',17)
236 insert into city values(6,'鹤壁市',17)
237 insert into city values(7,'新乡市',17)
238 insert into city values(8,'焦作市',17)
239 insert into city values(9,'濮阳市',17)
240 insert into city values(10,'许昌市',17)
241 insert into city values(11,'漯河市',17)
242 insert into city values(12,'三门峡市',17)
243 insert into city values(13,'南阳市',17)
244 insert into city values(14,'商丘市',17)
245 insert into city values(15,'信阳市',17)
246 insert into city values(16,'周口市',17)
247 insert into city values(17,'驻马店市',17)
248 insert into city values(18,'济源市',17)
249 --18湖北省(截至2005年12月31日,全省辖13个地级单位(12个地级市、1个自治州);102县级单位(38个市辖区、24个县级市、37个县、2个自治县、1个林区),共有1220个乡级单位(277个街道、733个镇、210个乡)。)
250 insert into city values(1,'武汉市',18)
251 insert into city values(2,'黄石市',18)
252 insert into city values(3,'十堰市',18)
253 insert into city values(4,'荆州市',18)
254 insert into city values(5,'宜昌市',18)
255 insert into city values(6,'襄樊市',18)
256 insert into city values(7,'鄂州市',18)
257 insert into city values(8,'荆门市',18)
258 insert into city values(9,'孝感市',18)
259 insert into city values(10,'黄冈市',18)
260 insert into city values(11,'咸宁市',18)
261 insert into city values(12,'随州市',18)
262 insert into city values(13,'仙桃市',18)
263 insert into city values(14,'天门市',18)
264 insert into city values(15,'潜江市',18)
265 insert into city values(16,'神农架林区',18)
266 insert into city values(17,'恩施土家族苗族自治州',18)
267 --19湖南省(2005年辖:13个地级市、1个自治州;34个市辖区、16个县级市、65个县、7个自治县。)
268 insert into city values(1,'长沙市',19)
269 insert into city values(2,'株洲市',19)
270 insert into city values(3,'湘潭市',19)
271 insert into city values(4,'衡阳市',19)
272 insert into city values(5,'邵阳市',19)
273 insert into city values(6,'岳阳市',19)
274 insert into city values(7,'常德市',19)
275 insert into city values(8,'张家界市',19)
276 insert into city values(9,'益阳市',19)
277 insert into city values(10,'郴州市',19)
278 insert into city values(11,'永州市',19)
279 insert into city values(12,'怀化市',19)
280 insert into city values(13,'娄底市',19)
281 insert into city values(14,'湘西土家族苗族自治州',19)
282 --20广东省(截至2005年12月31日,广东省辖:21个地级市,54个市辖区、23个县级市、41个县、3个自治县,429个街道办事处、1145个镇、4个乡、7个民族乡。)
283 insert into city values(1,'广州市',20)
284 insert into city values(2,'深圳市',20)
285 insert into city values(3,'珠海市',20)
286 insert into city values(4,'汕头市',20)
287 insert into city values(5,'韶关市',20)
288 insert into city values(6,'佛山市',20)
289 insert into city values(7,'江门市',20)
290 insert into city values(8,'湛江市',20)
291 insert into city values(9,'茂名市',20)
292 insert into city values(10,'肇庆市',20)
293 insert into city values(11,'惠州市',20)
294 insert into city values(12,'梅州市',20)
295 insert into city values(13,'汕尾市',20)
296 insert into city values(14,'河源市',20)
297 insert into city values(15,'阳江市',20)
298 insert into city values(16,'清远市',20)
299 insert into city values(17,'东莞市',20)
300 insert into city values(18,'中山市',20)
301 insert into city values(19,'潮州市',20)
302 insert into city values(20,'揭阳市',20)
303 insert into city values(21,'云浮市',20)
304 --21甘肃省(2006年辖:12个地级市、2个自治州;17个市辖区、4个县级市、58个县、7个自治县。)
305 insert into city values(1,'兰州市',21)
306 insert into city values(2,'金昌市',21)
307 insert into city values(3,'白银市',21)
308 insert into city values(4,'天水市',21)
309 insert into city values(5,'嘉峪关市',21)
310 insert into city values(6,'武威市',21)
311 insert into city values(7,'张掖市',21)
312 insert into city values(8,'平凉市',21)
313 insert into city values(9,'酒泉市',21)
314 insert into city values(10,'庆阳市',21)
315 insert into city values(11,'定西市',21)
316 insert into city values(12,'陇南市',21)
317 insert into city values(13,'临夏回族自治州',21)
318 insert into city values(14,'甘南藏族自治州',21)
319 --22四川省(2006年辖:18个地级市、3个自治州;43个市辖区、14个县级市、120个县、4个自治县。)
320 insert into city values(1,'成都市',22)
321 insert into city values(2,'自贡市',22)
322 insert into city values(3,'攀枝花市',22)
323 insert into city values(4,'泸州市',22)
324 insert into city values(5,'德阳市',22)
325 insert into city values(6,'绵阳市',22)
326 insert into city values(7,'广元市',22)
327 insert into city values(8,'遂宁市',22)
328 insert into city values(9,'内江市',22)
329 insert into city values(10,'乐山市',22)
330 insert into city values(11,'南充市',22)
331 insert into city values(12,'眉山市',22)
332 insert into city values(13,'宜宾市',22)
333 insert into city values(14,'广安市',22)
334 insert into city values(15,'达州市',22)
335 insert into city values(16,'雅安市',22)
336 insert into city values(17,'巴中市',22)
337 insert into city values(18,'资阳市',22)
338 insert into city values(19,'阿坝藏族羌族自治州',22)
339 insert into city values(20,'甘孜藏族自治州',22)
340 insert into city values(21,'凉山彝族自治州',22)
341 /**//****************************************
342 --23山东省(2005年,辖:17个地级市;49个市辖区、31个县级市、60个县。)
343 insert into city values(1,'济南市',16)
344 insert into city values(2,'青岛市',16)
345 insert into city values(3,'淄博市',16)
346 insert into city values(4,'枣庄市',16)
347 insert into city values(5,'东营市',16)
348 insert into city values(6,'烟台市',16)
349 insert into city values(7,'潍坊市',16)
350 insert into city values(8,'济宁市',16)
351 insert into city values(9,'泰安市',16)
352 insert into city values(10,'威海市',16)
353 insert into city values(11,'日照市',16)
354 insert into city values(12,'莱芜市',16)
355 insert into city values(13,'临沂市',16)
356 insert into city values(14,'德州市',16)
357 insert into city values(15,'聊城市',16)
358 insert into city values(16,'滨州市',16)
359 insert into city values(17,'菏泽市',16)
360 *************************************/
361 --24贵州省(2006年辖:4个地级市、2个地区、3个自治州;10个市辖区、9个县级市、56个县、11个自治县、2个特区。)
362 insert into city values(1,'贵阳市',24)
363 insert into city values(2,'六盘水市',24)
364 insert into city values(3,'遵义市',24)
365 insert into city values(4,'安顺市',24)
366 insert into city values(5,'铜仁地区',24)
367 insert into city values(6,'毕节地区',24)
368 insert into city values(7,'黔西南布依族苗族自治州',24)
369 insert into city values(8,'黔东南苗族侗族自治州',24)
370 insert into city values(9,'黔南布依族苗族自治州',24)
371 --25海南省(2003-2005年 全省有2个地级市,6个县级市,4个县,6个民族自治县,4个市辖区,1个办事处(西南中沙群岛办事处,县级)。)
372 insert into city values(1,'海口市',25)
373 insert into city values(2,'三亚市',25)
374 insert into city values(3,'五指山市',25)
375 insert into city values(4,'琼海市',25)
376 insert into city values(5,'儋州市',25)
377 insert into city values(6,'文昌市',25)
378 insert into city values(7,'万宁市',25)
379 insert into city values(8,'东方市',25)
380 insert into city values(9,'澄迈县',25)
381 insert into city values(10,'定安县',25)
382 insert into city values(11,'屯昌县',25)
383 insert into city values(12,'临高县',25)
384 insert into city values(13,'白沙黎族自治县',25)
385 insert into city values(14,'昌江黎族自治县',25)
386 insert into city values(15,'乐东黎族自治县',25)
387 insert into city values(16,'陵水黎族自治县',25)
388 insert into city values(17,'保亭黎族苗族自治县',25)
389 insert into city values(18,'琼中黎族苗族自治县',25)
390 --26云南省(2006年辖:8个地级市、8个自治州;12个市辖区、9个县级市、79个县、29个自治县。)
391 insert into city values(1,'昆明市',26)
392 insert into city values(2,'曲靖市',26)
393 insert into city values(3,'玉溪市',26)
394 insert into city values(4,'保山市',26)
395 insert into city values(5,'昭通市',26)
396 insert into city values(6,'丽江市',26)
397 insert into city values(7,'思茅市',26)
398 insert into city values(8,'临沧市',26)
399 insert into city values(9,'文山壮族苗族自治州',26)
400 insert into city values(10,'红河哈尼族彝族自治州',26)
401 insert into city values(11,'西双版纳傣族自治州',26)
402 insert into city values(12,'楚雄彝族自治州',26)
403 insert into city values(13,'大理白族自治州',26)
404 insert into city values(14,'德宏傣族景颇族自治州',26)
405 insert into city values(15,'怒江傈傈族自治州',26)
406 insert into city values(16,'迪庆藏族自治州',26)
407 --27青海省(2006年辖:1个地级市、1个地区、6个自治州;4个市辖区、2个县级市、30个县、7个自治县。)
408 insert into city values(1,'西宁市',27)
409 insert into city values(2,'海东地区',27)
410 insert into city values(3,'海北藏族自治州',27)
411 insert into city values(4,'黄南藏族自治州',27)
412 insert into city values(5,'海南藏族自治州',27)
413 insert into city values(6,'果洛藏族自治州',27)
414 insert into city values(7,'玉树藏族自治州',27)
415 insert into city values(8,'海西蒙古族藏族自治州',27)
416 --28陕西省(2006年辖:10个地级市;24个市辖区、3个县级市、80个县。)
417 insert into city values(1,'西安市',28)
418 insert into city values(2,'铜川市',28)
419 insert into city values(3,'宝鸡市',28)
420 insert into city values(4,'咸阳市',28)
421 insert into city values(5,'渭南市',28)
422 insert into city values(6,'延安市',28)
423 insert into city values(7,'汉中市',28)
424 insert into city values(8,'榆林市',28)
425 insert into city values(9,'安康市',28)
426 insert into city values(10,'商洛市',28)
427 --29广西壮族自治区(2005年辖:14个地级市;34个市辖区、7个县级市、56个县、12个自治县。)
428 insert into city values(1,'南宁市',29)
429 insert into city values(2,'柳州市',29)
430 insert into city values(3,'桂林市',29)
431 insert into city values(4,'梧州市',29)
432 insert into city values(5,'北海市',29)
433 insert into city values(6,'防城港市',29)
434 insert into city values(7,'钦州市',29)
435 insert into city values(8,'贵港市',29)
436 insert into city values(9,'玉林市',29)
437 insert into city values(10,'百色市',29)
438 insert into city values(11,'贺州市',29)
439 insert into city values(12,'河池市',29)
440 insert into city values(13,'来宾市',29)
441 insert into city values(14,'崇左市',29)
442 --30西藏自治区(2005年辖:1个地级市、6个地区;1个市辖区、1个县级市、71个县。)
443 insert into city values(1,'拉萨市',30)
444 insert into city values(2,'那曲地区',30)
445 insert into city values(3,'昌都地区',30)
446 insert into city values(4,'山南地区',30)
447 insert into city values(5,'日喀则地区',30)
448 insert into city values(6,'阿里地区',30)
449 insert into city values(7,'林芝地区',30)
450 --31宁夏回族自治区
451 insert into city values(1,'银川市',31)
452 insert into city values(2,'石嘴山市',31)
453 insert into city values(3,'吴忠市',31)
454 insert into city values(4,'固原市',31)
455 insert into city values(5,'中卫市',31)
456 --32新疆维吾尔自治区(2005年辖:2个地级市、7个地区、5个自治州;11个市辖区、20个县级市、62个县、6个自治县)
457 insert into city values(1,'乌鲁木齐市',32)
458 insert into city values(2,'克拉玛依市',32)
459 insert into city values(3,'石河子市 ',32)
460 insert into city values(4,'阿拉尔市',32)
461 insert into city values(5,'图木舒克市',32)
462 insert into city values(6,'五家渠市',32)
463 insert into city values(7,'吐鲁番市',32)
464 insert into city values(8,'阿克苏市',32)
465 insert into city values(9,'喀什市',32)
466 insert into city values(10,'哈密市',32)
467 insert into city values(11,'和田市',32)
468 insert into city values(12,'阿图什市',32)
469 insert into city values(13,'库尔勒市',32)
470 insert into city values(14,'昌吉市 ',32)
471 insert into city values(15,'阜康市',32)
472 insert into city values(16,'米泉市',32)
473 insert into city values(17,'博乐市',32)
474 insert into city values(18,'伊宁市',32)
475 insert into city values(19,'奎屯市',32)
476 insert into city values(20,'塔城市',32)
477 insert into city values(21,'乌苏市',32)
478 insert into city values(22,'阿勒泰市',32)
479 --33内蒙古自治区(2006年,辖:9个地级市、3个盟;21个市辖区、11个县级市、17个县、49个旗、3个自治旗。)
480 insert into city values(1,'呼和浩特市',33)
481 insert into city values(2,'包头市',33)
482 insert into city values(3,'乌海市',33)
483 insert into city values(4,'赤峰市',33)
484 insert into city values(5,'通辽市',33)
485 insert into city values(6,'鄂尔多斯市',33)
486 insert into city values(7,'呼伦贝尔市',33)
487 insert into city values(8,'巴彦淖尔市',33)
488 insert into city values(9,'乌兰察布市',33)
489 insert into city values(10,'锡林郭勒盟',33)
490 insert into city values(11,'兴安盟',33)
491 insert into city values(12,'阿拉善盟',33)
492 --34澳门特别行政区
493 insert into city values(1,'澳门特别行政区',34)
494 --35香港特别行政区
495 insert into city values(1,'香港特别行政区',35)
496 ----------------------------------------------------------------------------------------------------------------------------------------
497 --查询语句
498 select * from promary
499 select * from city
2 create table promary
3 (
4 proID int primary key,
5 proName varchar(50) not null
6 )
7 ----------------------------------------------------------------------------------------------------------------------------------------
8 --中国34个省级行政单位 23个省 5个自治区 4个直辖市 2特别行政区
9 insert into promary values(1,'北京市')
10 insert into promary values(2,'天津市')
11 insert into promary values(3,'上海市')
12 insert into promary values(4,'重庆市')
13 insert into promary values(5,'河北省')
14 insert into promary values(6,'山西省')
15 insert into promary values(7,'台湾省')
16 insert into promary values(8,'辽宁省')
17 insert into promary values(9,'吉林省')
18 insert into promary values(10,'黑龙江省')
19 insert into promary values(11,'江苏省')
20 insert into promary values(12,'浙江省')
21 insert into promary values(13,'安徽省')
22 insert into promary values(14,'福建省')
23 insert into promary values(15,'江西省')
24 insert into promary values(16,'山东省')
25 insert into promary values(17,'河南省')
26 insert into promary values(18,'湖北省')
27 insert into promary values(19,'湖南省')
28 insert into promary values(20,'广东省')
29 insert into promary values(21,'甘肃省')
30 insert into promary values(22,'四川省')
31 insert into promary values(24,'贵州省')
32 insert into promary values(25,'海南省')
33 insert into promary values(26,'云南省')
34 insert into promary values(27,'青海省')
35 insert into promary values(28,'陕西省')
36 insert into promary values(29,'广西壮族自治区')
37 insert into promary values(30,'西藏自治区')
38 insert into promary values(31,'宁夏回族自治区')
39 insert into promary values(32,'新疆维吾尔自治区')
40 insert into promary values(33,'内蒙古自治区')
41 insert into promary values(34,'澳门特别行政区')
42 insert into promary values(35,'香港特别行政区')
43 ----------------------------------------------------------------------------------------------------------------------------------------
44 --创建city表
45 create table city
46 (
47 cityID int not null,
48 cityName varchar(50) primary key,
49 proID int foreign key references promary(proID)
50 )
51
52 ----------------------------------------------------------------------------------------------------------------------------------------
53 --插入各个省的城市数据
54 --4个直辖市
55 insert into city values(1,'北京市',1)
56 insert into city values(1,'天津市',2)
57 insert into city values(1,'上海市',3)
58 insert into city values(1,'重庆市',4)
59 --5河北省(2005年辖:11个地级市,36个市辖区、22个县级市、108个县、6个自治县)
60 insert into city values(1,'石家庄市',5)
61 insert into city values(2,'唐山市',5)
62 insert into city values(3,'秦皇岛市',5)
63 insert into city values(4,'邯郸市',5)
64 insert into city values(5,'邢台市',5)
65 insert into city values(6,'保定市',5)
66 insert into city values(7,'张家口市',5)
67 insert into city values(8,'承德市',5)
68 insert into city values(9,'沧州市',5)
69 insert into city values(10,'廊坊市',5)
70 insert into city values(11,'衡水市',5)
71 --6山西省11个城市
72 insert into city values(1,'太原市',6)
73 insert into city values(2,'大同市',6)
74 insert into city values(3,'阳泉市',6)
75 insert into city values(4,'长治市',6)
76 insert into city values(5,'晋城市',6)
77 insert into city values(6,'朔州市',6)
78 insert into city values(7,'晋中市',6)
79 insert into city values(8,'运城市',6)
80 insert into city values(9,'忻州市',6)
81 insert into city values(10,'临汾市',6)
82 insert into city values(11,'吕梁市',6)
83 --7台湾省(台湾本岛和澎湖共设7市、16县,其中台北市和高雄市为“院辖市”,直属“行政院”,其余属台湾省;市下设区,县下设市(县辖市)、镇、乡,合称区市镇乡。)
84 insert into city values(1,'台北市',7)
85 insert into city values(2,'高雄市',7)
86 insert into city values(3,'基隆市',7)
87 insert into city values(4,'台中市',7)
88 insert into city values(5,'台南市',7)
89 insert into city values(6,'新竹市',7)
90 insert into city values(7,'嘉义市',7)
91 insert into city values(8,'台北县',7)
92 insert into city values(9,'宜兰县',7)
93 insert into city values(10,'桃园县',7)
94 insert into city values(11,'新竹县',7)
95 insert into city values(12,'苗栗县',7)
96 insert into city values(13,'台中县',7)
97 insert into city values(14,'彰化县',7)
98 insert into city values(15,'南投县',7)
99 insert into city values(16,'云林县',7)
100 insert into city values(17,'嘉义县',7)
101 insert into city values(18,'台南县',7)
102 insert into city values(19,'高雄县',7)
103 insert into city values(20,'屏东县',7)
104 insert into city values(21,'澎湖县',7)
105 insert into city values(22,'台东县',7)
106 insert into city values(23,'花莲县',7)
107 --8辽宁省(2006年,辖:14个地级市;56个市辖区、17个县级市、19个县、8个自治县。)
108 insert into city values(1,'沈阳市',8)
109 insert into city values(2,'大连市',8)
110 insert into city values(3,'鞍山市',8)
111 insert into city values(4,'抚顺市',8)
112 insert into city values(5,'本溪市',8)
113 insert into city values(6,'丹东市',8)
114 insert into city values(7,'锦州市',8)
115 insert into city values(8,'营口市',8)
116 insert into city values(9,'阜新市',8)
117 insert into city values(10,'辽阳市',8)
118 insert into city values(11,'盘锦市',8)
119 insert into city values(12,'铁岭市',8)
120 insert into city values(13,'朝阳市',8)
121 insert into city values(14,'葫芦岛市',8)
122 --9吉林省(2006年,辖:8个地级市、1个自治州;20个市辖区、20个县级市、17个县、3个自治县。)
123 insert into city values(1,'长春市',9)
124 insert into city values(2,'吉林市',9)
125 insert into city values(3,'四平市',9)
126 insert into city values(4,'辽源市',9)
127 insert into city values(5,'通化市',9)
128 insert into city values(6,'白山市',9)
129 insert into city values(7,'松原市',9)
130 insert into city values(8,'白城市',9)
131 insert into city values(9,'延边朝鲜族自治州',9)
132 --10黑龙江省(2006年,辖:12地级市、1地区;64市辖区、18县级市、45县、1自治县)
133 insert into city values(1,'哈尔滨市',10)
134 insert into city values(2,'齐齐哈尔市',10)
135 insert into city values(3,'鹤 岗 市',10)
136 insert into city values(4,'双鸭山市',10)
137 insert into city values(5,'鸡 西 市',10)
138 insert into city values(6,'大 庆 市',10)
139 insert into city values(7,'伊 春 市',10)
140 insert into city values(8,'牡丹江市',10)
141 insert into city values(9,'佳木斯市',10)
142 insert into city values(10,'七台河市',10)
143 insert into city values(11,'黑 河 市',10)
144 insert into city values(12,'绥 化 市',10)
145 insert into city values(13,'大兴安岭地区',10)
146 --11江苏省(2005年辖:13个地级市;54个市辖区、27个县级市、25个县)
147 insert into city values(1,'南京市',11)
148 insert into city values(2,'无锡市',11)
149 insert into city values(3,'徐州市',11)
150 insert into city values(4,'常州市',11)
151 insert into city values(5,'苏州市',11)
152 insert into city values(6,'南通市',11)
153 insert into city values(7,'连云港市',11)
154 insert into city values(8,'淮安市',11)
155 insert into city values(9,'盐城市',11)
156 insert into city values(10,'扬州市',11)
157 insert into city values(11,'镇江市',11)
158 insert into city values(12,'泰州市',11)
159 insert into city values(13,'宿迁市',11)
160 --12浙江省(2006年,辖:11个地级市;32个市辖区、22个县级市、35个县、1个自治县。)
161 insert into city values(1,'杭州市',12)
162 insert into city values(2,'宁波市',12)
163 insert into city values(3,'温州市',12)
164 insert into city values(4,'嘉兴市',12)
165 insert into city values(5,'湖州市',12)
166 insert into city values(6,'绍兴市',12)
167 insert into city values(7,'金华市',12)
168 insert into city values(8,'衢州市',12)
169 insert into city values(9,'舟山市',12)
170 insert into city values(10,'台州市',12)
171 insert into city values(11,'丽水市',12)
172 --13安徽省(2005年辖:17个地级市;44个市辖区、5县个级市、56个县。)
173 insert into city values(1,'合肥市',13)
174 insert into city values(2,'芜湖市',13)
175 insert into city values(3,'蚌埠市',13)
176 insert into city values(4,'淮南市',13)
177 insert into city values(5,'马鞍山市',13)
178 insert into city values(6,'淮北市',13)
179 insert into city values(7,'铜陵市',13)
180 insert into city values(8,'安庆市',13)
181 insert into city values(9,'黄山市',13)
182 insert into city values(10,'滁州市',13)
183 insert into city values(11,'阜阳市',13)
184 insert into city values(12,'宿州市',13)
185 insert into city values(13,'巢湖市',13)
186 insert into city values(14,'六安市',13)
187 insert into city values(15,'亳州市',13)
188 insert into city values(16,'池州市',13)
189 insert into city values(17,'宣城市',13)
190 --14福建省(2006年辖:9个地级市;26个市辖区、14个县级市、45个县。)
191 insert into city values(1,'福州市',14)
192 insert into city values(2,'厦门市',14)
193 insert into city values(3,'莆田市',14)
194 insert into city values(4,'三明市',14)
195 insert into city values(5,'泉州市',14)
196 insert into city values(6,'漳州市',14)
197 insert into city values(7,'南平市',14)
198 insert into city values(8,'龙岩市',14)
199 insert into city values(9,'宁德市',14)
200 --15江西省(2006年全省辖:11个地级市;19个市辖区、10个县级市、70个县。)
201 insert into city values(1,'南昌市',15)
202 insert into city values(2,'景德镇市',15)
203 insert into city values(3,'萍乡市',15)
204 insert into city values(4,'九江市',15)
205 insert into city values(5,'新余市',15)
206 insert into city values(6,'鹰潭市',15)
207 insert into city values(7,'赣州市',15)
208 insert into city values(8,'吉安市',15)
209 insert into city values(9,'宜春市',15)
210 insert into city values(10,'抚州市',15)
211 insert into city values(11,'上饶市',15)
212 --16山东省(2005年,辖:17个地级市;49个市辖区、31个县级市、60个县。)
213 insert into city values(1,'济南市',16)
214 insert into city values(2,'青岛市',16)
215 insert into city values(3,'淄博市',16)
216 insert into city values(4,'枣庄市',16)
217 insert into city values(5,'东营市',16)
218 insert into city values(6,'烟台市',16)
219 insert into city values(7,'潍坊市',16)
220 insert into city values(8,'济宁市',16)
221 insert into city values(9,'泰安市',16)
222 insert into city values(10,'威海市',16)
223 insert into city values(11,'日照市',16)
224 insert into city values(12,'莱芜市',16)
225 insert into city values(13,'临沂市',16)
226 insert into city values(14,'德州市',16)
227 insert into city values(15,'聊城市',16)
228 insert into city values(16,'滨州市',16)
229 insert into city values(17,'菏泽市',16)
230 --17河南省(2005年辖:17个地级市;50个市辖区、21个县级市、88个县。)
231 insert into city values(1,'郑州市',17)
232 insert into city values(2,'开封市',17)
233 insert into city values(3,'洛阳市',17)
234 insert into city values(4,'平顶山市',17)
235 insert into city values(5,'安阳市',17)
236 insert into city values(6,'鹤壁市',17)
237 insert into city values(7,'新乡市',17)
238 insert into city values(8,'焦作市',17)
239 insert into city values(9,'濮阳市',17)
240 insert into city values(10,'许昌市',17)
241 insert into city values(11,'漯河市',17)
242 insert into city values(12,'三门峡市',17)
243 insert into city values(13,'南阳市',17)
244 insert into city values(14,'商丘市',17)
245 insert into city values(15,'信阳市',17)
246 insert into city values(16,'周口市',17)
247 insert into city values(17,'驻马店市',17)
248 insert into city values(18,'济源市',17)
249 --18湖北省(截至2005年12月31日,全省辖13个地级单位(12个地级市、1个自治州);102县级单位(38个市辖区、24个县级市、37个县、2个自治县、1个林区),共有1220个乡级单位(277个街道、733个镇、210个乡)。)
250 insert into city values(1,'武汉市',18)
251 insert into city values(2,'黄石市',18)
252 insert into city values(3,'十堰市',18)
253 insert into city values(4,'荆州市',18)
254 insert into city values(5,'宜昌市',18)
255 insert into city values(6,'襄樊市',18)
256 insert into city values(7,'鄂州市',18)
257 insert into city values(8,'荆门市',18)
258 insert into city values(9,'孝感市',18)
259 insert into city values(10,'黄冈市',18)
260 insert into city values(11,'咸宁市',18)
261 insert into city values(12,'随州市',18)
262 insert into city values(13,'仙桃市',18)
263 insert into city values(14,'天门市',18)
264 insert into city values(15,'潜江市',18)
265 insert into city values(16,'神农架林区',18)
266 insert into city values(17,'恩施土家族苗族自治州',18)
267 --19湖南省(2005年辖:13个地级市、1个自治州;34个市辖区、16个县级市、65个县、7个自治县。)
268 insert into city values(1,'长沙市',19)
269 insert into city values(2,'株洲市',19)
270 insert into city values(3,'湘潭市',19)
271 insert into city values(4,'衡阳市',19)
272 insert into city values(5,'邵阳市',19)
273 insert into city values(6,'岳阳市',19)
274 insert into city values(7,'常德市',19)
275 insert into city values(8,'张家界市',19)
276 insert into city values(9,'益阳市',19)
277 insert into city values(10,'郴州市',19)
278 insert into city values(11,'永州市',19)
279 insert into city values(12,'怀化市',19)
280 insert into city values(13,'娄底市',19)
281 insert into city values(14,'湘西土家族苗族自治州',19)
282 --20广东省(截至2005年12月31日,广东省辖:21个地级市,54个市辖区、23个县级市、41个县、3个自治县,429个街道办事处、1145个镇、4个乡、7个民族乡。)
283 insert into city values(1,'广州市',20)
284 insert into city values(2,'深圳市',20)
285 insert into city values(3,'珠海市',20)
286 insert into city values(4,'汕头市',20)
287 insert into city values(5,'韶关市',20)
288 insert into city values(6,'佛山市',20)
289 insert into city values(7,'江门市',20)
290 insert into city values(8,'湛江市',20)
291 insert into city values(9,'茂名市',20)
292 insert into city values(10,'肇庆市',20)
293 insert into city values(11,'惠州市',20)
294 insert into city values(12,'梅州市',20)
295 insert into city values(13,'汕尾市',20)
296 insert into city values(14,'河源市',20)
297 insert into city values(15,'阳江市',20)
298 insert into city values(16,'清远市',20)
299 insert into city values(17,'东莞市',20)
300 insert into city values(18,'中山市',20)
301 insert into city values(19,'潮州市',20)
302 insert into city values(20,'揭阳市',20)
303 insert into city values(21,'云浮市',20)
304 --21甘肃省(2006年辖:12个地级市、2个自治州;17个市辖区、4个县级市、58个县、7个自治县。)
305 insert into city values(1,'兰州市',21)
306 insert into city values(2,'金昌市',21)
307 insert into city values(3,'白银市',21)
308 insert into city values(4,'天水市',21)
309 insert into city values(5,'嘉峪关市',21)
310 insert into city values(6,'武威市',21)
311 insert into city values(7,'张掖市',21)
312 insert into city values(8,'平凉市',21)
313 insert into city values(9,'酒泉市',21)
314 insert into city values(10,'庆阳市',21)
315 insert into city values(11,'定西市',21)
316 insert into city values(12,'陇南市',21)
317 insert into city values(13,'临夏回族自治州',21)
318 insert into city values(14,'甘南藏族自治州',21)
319 --22四川省(2006年辖:18个地级市、3个自治州;43个市辖区、14个县级市、120个县、4个自治县。)
320 insert into city values(1,'成都市',22)
321 insert into city values(2,'自贡市',22)
322 insert into city values(3,'攀枝花市',22)
323 insert into city values(4,'泸州市',22)
324 insert into city values(5,'德阳市',22)
325 insert into city values(6,'绵阳市',22)
326 insert into city values(7,'广元市',22)
327 insert into city values(8,'遂宁市',22)
328 insert into city values(9,'内江市',22)
329 insert into city values(10,'乐山市',22)
330 insert into city values(11,'南充市',22)
331 insert into city values(12,'眉山市',22)
332 insert into city values(13,'宜宾市',22)
333 insert into city values(14,'广安市',22)
334 insert into city values(15,'达州市',22)
335 insert into city values(16,'雅安市',22)
336 insert into city values(17,'巴中市',22)
337 insert into city values(18,'资阳市',22)
338 insert into city values(19,'阿坝藏族羌族自治州',22)
339 insert into city values(20,'甘孜藏族自治州',22)
340 insert into city values(21,'凉山彝族自治州',22)
341 /**//****************************************
342 --23山东省(2005年,辖:17个地级市;49个市辖区、31个县级市、60个县。)
343 insert into city values(1,'济南市',16)
344 insert into city values(2,'青岛市',16)
345 insert into city values(3,'淄博市',16)
346 insert into city values(4,'枣庄市',16)
347 insert into city values(5,'东营市',16)
348 insert into city values(6,'烟台市',16)
349 insert into city values(7,'潍坊市',16)
350 insert into city values(8,'济宁市',16)
351 insert into city values(9,'泰安市',16)
352 insert into city values(10,'威海市',16)
353 insert into city values(11,'日照市',16)
354 insert into city values(12,'莱芜市',16)
355 insert into city values(13,'临沂市',16)
356 insert into city values(14,'德州市',16)
357 insert into city values(15,'聊城市',16)
358 insert into city values(16,'滨州市',16)
359 insert into city values(17,'菏泽市',16)
360 *************************************/
361 --24贵州省(2006年辖:4个地级市、2个地区、3个自治州;10个市辖区、9个县级市、56个县、11个自治县、2个特区。)
362 insert into city values(1,'贵阳市',24)
363 insert into city values(2,'六盘水市',24)
364 insert into city values(3,'遵义市',24)
365 insert into city values(4,'安顺市',24)
366 insert into city values(5,'铜仁地区',24)
367 insert into city values(6,'毕节地区',24)
368 insert into city values(7,'黔西南布依族苗族自治州',24)
369 insert into city values(8,'黔东南苗族侗族自治州',24)
370 insert into city values(9,'黔南布依族苗族自治州',24)
371 --25海南省(2003-2005年 全省有2个地级市,6个县级市,4个县,6个民族自治县,4个市辖区,1个办事处(西南中沙群岛办事处,县级)。)
372 insert into city values(1,'海口市',25)
373 insert into city values(2,'三亚市',25)
374 insert into city values(3,'五指山市',25)
375 insert into city values(4,'琼海市',25)
376 insert into city values(5,'儋州市',25)
377 insert into city values(6,'文昌市',25)
378 insert into city values(7,'万宁市',25)
379 insert into city values(8,'东方市',25)
380 insert into city values(9,'澄迈县',25)
381 insert into city values(10,'定安县',25)
382 insert into city values(11,'屯昌县',25)
383 insert into city values(12,'临高县',25)
384 insert into city values(13,'白沙黎族自治县',25)
385 insert into city values(14,'昌江黎族自治县',25)
386 insert into city values(15,'乐东黎族自治县',25)
387 insert into city values(16,'陵水黎族自治县',25)
388 insert into city values(17,'保亭黎族苗族自治县',25)
389 insert into city values(18,'琼中黎族苗族自治县',25)
390 --26云南省(2006年辖:8个地级市、8个自治州;12个市辖区、9个县级市、79个县、29个自治县。)
391 insert into city values(1,'昆明市',26)
392 insert into city values(2,'曲靖市',26)
393 insert into city values(3,'玉溪市',26)
394 insert into city values(4,'保山市',26)
395 insert into city values(5,'昭通市',26)
396 insert into city values(6,'丽江市',26)
397 insert into city values(7,'思茅市',26)
398 insert into city values(8,'临沧市',26)
399 insert into city values(9,'文山壮族苗族自治州',26)
400 insert into city values(10,'红河哈尼族彝族自治州',26)
401 insert into city values(11,'西双版纳傣族自治州',26)
402 insert into city values(12,'楚雄彝族自治州',26)
403 insert into city values(13,'大理白族自治州',26)
404 insert into city values(14,'德宏傣族景颇族自治州',26)
405 insert into city values(15,'怒江傈傈族自治州',26)
406 insert into city values(16,'迪庆藏族自治州',26)
407 --27青海省(2006年辖:1个地级市、1个地区、6个自治州;4个市辖区、2个县级市、30个县、7个自治县。)
408 insert into city values(1,'西宁市',27)
409 insert into city values(2,'海东地区',27)
410 insert into city values(3,'海北藏族自治州',27)
411 insert into city values(4,'黄南藏族自治州',27)
412 insert into city values(5,'海南藏族自治州',27)
413 insert into city values(6,'果洛藏族自治州',27)
414 insert into city values(7,'玉树藏族自治州',27)
415 insert into city values(8,'海西蒙古族藏族自治州',27)
416 --28陕西省(2006年辖:10个地级市;24个市辖区、3个县级市、80个县。)
417 insert into city values(1,'西安市',28)
418 insert into city values(2,'铜川市',28)
419 insert into city values(3,'宝鸡市',28)
420 insert into city values(4,'咸阳市',28)
421 insert into city values(5,'渭南市',28)
422 insert into city values(6,'延安市',28)
423 insert into city values(7,'汉中市',28)
424 insert into city values(8,'榆林市',28)
425 insert into city values(9,'安康市',28)
426 insert into city values(10,'商洛市',28)
427 --29广西壮族自治区(2005年辖:14个地级市;34个市辖区、7个县级市、56个县、12个自治县。)
428 insert into city values(1,'南宁市',29)
429 insert into city values(2,'柳州市',29)
430 insert into city values(3,'桂林市',29)
431 insert into city values(4,'梧州市',29)
432 insert into city values(5,'北海市',29)
433 insert into city values(6,'防城港市',29)
434 insert into city values(7,'钦州市',29)
435 insert into city values(8,'贵港市',29)
436 insert into city values(9,'玉林市',29)
437 insert into city values(10,'百色市',29)
438 insert into city values(11,'贺州市',29)
439 insert into city values(12,'河池市',29)
440 insert into city values(13,'来宾市',29)
441 insert into city values(14,'崇左市',29)
442 --30西藏自治区(2005年辖:1个地级市、6个地区;1个市辖区、1个县级市、71个县。)
443 insert into city values(1,'拉萨市',30)
444 insert into city values(2,'那曲地区',30)
445 insert into city values(3,'昌都地区',30)
446 insert into city values(4,'山南地区',30)
447 insert into city values(5,'日喀则地区',30)
448 insert into city values(6,'阿里地区',30)
449 insert into city values(7,'林芝地区',30)
450 --31宁夏回族自治区
451 insert into city values(1,'银川市',31)
452 insert into city values(2,'石嘴山市',31)
453 insert into city values(3,'吴忠市',31)
454 insert into city values(4,'固原市',31)
455 insert into city values(5,'中卫市',31)
456 --32新疆维吾尔自治区(2005年辖:2个地级市、7个地区、5个自治州;11个市辖区、20个县级市、62个县、6个自治县)
457 insert into city values(1,'乌鲁木齐市',32)
458 insert into city values(2,'克拉玛依市',32)
459 insert into city values(3,'石河子市 ',32)
460 insert into city values(4,'阿拉尔市',32)
461 insert into city values(5,'图木舒克市',32)
462 insert into city values(6,'五家渠市',32)
463 insert into city values(7,'吐鲁番市',32)
464 insert into city values(8,'阿克苏市',32)
465 insert into city values(9,'喀什市',32)
466 insert into city values(10,'哈密市',32)
467 insert into city values(11,'和田市',32)
468 insert into city values(12,'阿图什市',32)
469 insert into city values(13,'库尔勒市',32)
470 insert into city values(14,'昌吉市 ',32)
471 insert into city values(15,'阜康市',32)
472 insert into city values(16,'米泉市',32)
473 insert into city values(17,'博乐市',32)
474 insert into city values(18,'伊宁市',32)
475 insert into city values(19,'奎屯市',32)
476 insert into city values(20,'塔城市',32)
477 insert into city values(21,'乌苏市',32)
478 insert into city values(22,'阿勒泰市',32)
479 --33内蒙古自治区(2006年,辖:9个地级市、3个盟;21个市辖区、11个县级市、17个县、49个旗、3个自治旗。)
480 insert into city values(1,'呼和浩特市',33)
481 insert into city values(2,'包头市',33)
482 insert into city values(3,'乌海市',33)
483 insert into city values(4,'赤峰市',33)
484 insert into city values(5,'通辽市',33)
485 insert into city values(6,'鄂尔多斯市',33)
486 insert into city values(7,'呼伦贝尔市',33)
487 insert into city values(8,'巴彦淖尔市',33)
488 insert into city values(9,'乌兰察布市',33)
489 insert into city values(10,'锡林郭勒盟',33)
490 insert into city values(11,'兴安盟',33)
491 insert into city values(12,'阿拉善盟',33)
492 --34澳门特别行政区
493 insert into city values(1,'澳门特别行政区',34)
494 --35香港特别行政区
495 insert into city values(1,'香港特别行政区',35)
496 ----------------------------------------------------------------------------------------------------------------------------------------
497 --查询语句
498 select * from promary
499 select * from city