Select*
From Chance
Where chanceno=’ ‘and parterno=’ ‘
Select*
From Selectorganization
Where city=’ ‘and parterno=’ ‘
(2)连接查询
Select*
From Contury,Province
WhereC-pno=pno
Select*
From Contury-Province,City
Where C-P.cityno=Cityno
Select*
From Contury-Province-City,Chance
WhereC-P-C.chanceno=Chanceno
Select*
FromContury-Province-City,Selectorganization, WhereC-P-C.selectorganizationaddress=selectorganizationaddress
Select*
From Contury-Province-City-Selectorganization,parter
Where C-P-C-S.parterno=parterno
数据更新
(1) 插入数据
INSERT
INTO Organition
VALUES (foreignpath,nationalpath,pastime)
INSERT
INTO Contury(cno,cname)
VALUES(000001,哈萨克斯坦;000002,土耳其;000003,俄罗斯;000004,英国;000005,法国;000006,美国;000007,阿根廷;000008,坦桑尼亚;
000009,阿曼;000010,巴基斯坦;000011,印度;000012,泰国;
000013,马来西亚;000014,印度尼西亚;000015,澳大利亚;
000015,日本;000016,韩国;000017,朝鲜,平壤;
000018,越南)
INSERT
INTO Province(pno,pname)
VALUES(0001,台北;0002,香港;0003,澳门;0004,海南;0005,广东;0006,福建;0007,江西;0008,浙江;0009,上海;0010,江苏;0011,安徽;0012,湖北;0013,湖南;0014,广西;0015,云南;0016,贵州;0017,重庆;0018,四川;0019,西藏;0020,青海;0021,新疆;0022,甘肃;0023,山西;0024,陕西;0025,内蒙古;0026,黑龙江;0027,吉林;0028,辽宁;0029,山东;0030,河南;0031,河北;0032,天津;0033,北京)
INSERT
INTO Contury-City(cno,cname,city-name)
VALUES(000001,哈萨克斯坦,阿拉木图;
000002,土耳其,伊斯坦布尔;
000003,俄罗斯,圣彼得堡;000004,英国,伦敦;000005,法国,巴黎;000006,美国,旧金山;000007,阿根廷,布宜诺艾利斯;
000008,坦桑尼亚,达累斯萨拉姆;000009,阿曼,马斯喀特;
000010,巴基斯坦,伊斯兰堡;000011,印度,孟买;000012,泰国,曼谷;
000013,马来西亚,吉隆坡;000014,印度尼西亚,雅加达;
000015,澳大利亚,堪培拉;000015,日本,长野;000016,韩国,首尔;
000017,朝鲜,平壤;000018,越南,胡志明)
INSERT
TO Province(pno,pname)
VALUES(001,台北;002,香港;003,澳门;004,海南;005,广东;006,福建;007,江西;008,浙江;009,上海; 010, 江苏;011,安徽;0012,湖北;0013,湖南;0014,广西壮族自治区;0015,云南;0016,贵州;
0017,重庆;0018,四川;0019,青海;0020,新疆文吾尔自治区;
0021甘肃;0022,宁夏回族自治区;0023,陕西;0024,山西;0025,内蒙古自治区;0026,黑龙江;0027,吉林;0028,辽宁;0029,山东;0030,河南;0031,河北;0032,天津;0033,北京)
INSERT
TO
VALUES(001,三亚, 海南;002,五指山;003,万宁;004,海口;
005,广州,广东;006,深圳,广东;007,惠州,广东;008,汕头,广东;
009,福州,福建;0010,泉州,福建;0011,厦门,福建;0012,龙岩,福建;0013,瑞金,江西;0014,井冈山,江西;0015,南昌,江西;
0016,温州,浙江;0017,宁波,浙江;0018,杭州,浙江;0019,绍兴,浙江;0020,嘉兴,浙江;0021,苏州,江苏;0022,南通,江苏;0023,泰州,江苏;0024,扬州,江苏;0025,南京,江苏;0026,合肥,安徽;0027,淮州,安徽;0028,芜湖,安徽;0029,绩溪,安徽;0030,黄山,安徽;
0031,武汉,湖北;0032,宜昌,湖北;0033,荆州,湖北;0034,岳阳,湖南;0035,长沙,湖南;0036,韶山,湖南;0037,桂林,广西;0038,南宁,广西;0039,百色,广西;0040,昆明,云南;0041,丽江,云南;0042,香格里拉,云南;0043,贵阳,贵州;0044,凯里,贵州;0045,遵义,贵州;
0046,广安,四川;0047,绵阳,四川;0048,广汉,四川;0049,乐山,四川;0050,自贡,四川;0051,宜宾,四川;0052,成都,四川;0053,山南地区,西藏;0054,拉萨,西藏;0055,格尔木,青海;0056,青海湖,青海;0057,西宁,青海;0058,乌鲁木齐,新疆;0059,喀什,新疆;0060,石河子,新疆;0061,昌吉,新疆;0062,敦煌,甘肃;0063,嘉峪关,甘肃;0064,酒泉,甘肃;0065,天水,甘肃;0066,兰州,甘肃;0067,中卫,宁夏;吴忠,宁夏;0068,银川,宁夏;0069,延安,陕西;0070,杨凌,陕西;0071,咸阳,陕西;0072,西安,陕西;0073,运城,山西;0074,平遥,山西;
0075,太原,山西;0076,大同,山西;0077,呼和浩特,内蒙古;0078,鄂尔多斯,内蒙古;0079,包头,内蒙古;0080,赤峰,内蒙古;0081,齐齐哈尔,黑龙江;0082,大庆,黑龙江;0083,哈尔滨;0084,松原,吉林;0085,长春,吉林;0086,吉林,吉林;0087,延吉,吉林;0088,沈阳,辽宁;
0089,本溪,辽宁;0090,辽阳,辽宁;0091,本溪,辽宁;0092,鞍山,辽宁;0093,大连;0094,烟台,山东;0095,威海,山东;0096,青岛,山东;0097,日照,山东;0098,临沂,山东;0099,曲阜,山东;0100,泰安,山东;0101,济南,山东;0102,商丘,河南;0103,开封,河南;0104,郑州,
河南;0105,洛阳,河南;0106,安阳,河南;0107,石家庄,河北;0108,秦皇岛,河北;0109,唐山,河北)