- SQL code
CREATE TABLE Province(ID INT Primary Key ,Name nvarchar(50))CREATE TABLE City(ID INT Primary Key ,Name nvarchar(50))INSERT INTO Province(ID,Name)VALUES('1','北京') INSERT INTO City(ID,Name)VALUES('1','东城区') INSERT INTO City(ID,Name)VALUES('2','西城区') INSERT INTO City(ID,Name)VALUES('3','宣武区') INSERT INTO City(ID,Name)VALUES('4','崇文区') INSERT INTO City(ID,Name)VALUES('5','朝阳区') INSERT INTO City(ID,Name)VALUES('6','海淀区') INSERT INTO City(ID,Name)VALUES('7','丰台区') INSERT INTO City(ID,Name)VALUES('8','石景山区') INSERT INTO City(ID,Name)VALUES('9','门头沟区') INSERT INTO City(ID,Name)VALUES('10','昌平区') INSERT INTO City(ID,Name)VALUES('11','大兴区') INSERT INTO City(ID,Name)VALUES('12','怀柔区') INSERT INTO City(ID,Name)VALUES('13','密云县') INSERT INTO City(ID,Name)VALUES('14','平谷区') INSERT INTO City(ID,Name)VALUES('15','顺义区') INSERT INTO City(ID,Name)VALUES('16','通州区') INSERT INTO City(ID,Name)VALUES('17','延庆县') INSERT INTO City(ID,Name)VALUES('103','房山区')INSERT INTO Province(ID,Name)VALUES('2','上海') INSERT INTO City(ID,Name)VALUES('18','黄浦区') INSERT INTO City(ID,Name)VALUES('19','南市区') INSERT INTO City(ID,Name)VALUES('20','卢湾区') INSERT INTO City(ID,Name)VALUES('21','徐汇区') INSERT INTO City(ID,Name)VALUES('22','长宁区') INSERT INTO City(ID,Name)VALUES('23','静安区') INSERT INTO City(ID,Name)VALUES('24','普陀区') INSERT INTO City(ID,Name)VALUES('25','金山区') INSERT INTO City(ID,Name)VALUES('26','闸北区') INSERT INTO City(ID,Name)VALUES('27','虹口区') INSERT INTO City(ID,Name)VALUES('28','杨浦区') INSERT INTO City(ID,Name)VALUES('29','宝山区') INSERT INTO City(ID,Name)VALUES('30','闵行区') INSERT INTO City(ID,Name)VALUES('31','嘉定区') INSERT INTO City(ID,Name)VALUES('32','松江区') INSERT INTO City(ID,Name)VALUES('33','浦东新区') INSERT INTO City(ID,Name)VALUES('34','青浦县') INSERT INTO City(ID,Name)VALUES('35','奉贤县') INSERT INTO City(ID,Name)VALUES('36','南汇县') INSERT INTO City(ID,Name)VALUES('37','崇明县')INSERT INTO Province(ID,Name)VALUES('3','天津') INSERT INTO City(ID,Name)VALUES('38','和平区') INSERT INTO City(ID,Name)VALUES('39','河东区') INSERT INTO City(ID,Name)VALUES('40','河西区') INSERT INTO City(ID,Name)VALUES('41','河北区') INSERT INTO City(ID,Name)VALUES('42','南开区') INSERT INTO City(ID,Name)VALUES('43','红桥区') INSERT INTO City(ID,Name)VALUES('44','塘沽区') INSERT INTO City(ID,Name)VALUES('45','汉沽区') INSERT INTO City(ID,Name)VALUES('105','大港区') INSERT INTO City(ID,Name)VALUES('106','东丽区') INSERT INTO City(ID,Name)VALUES('107','西青区') INSERT INTO City(ID,Name)VALUES('108','津南区') INSERT INTO City(ID,Name)VALUES('109','北辰区') INSERT INTO City(ID,Name)VALUES('110',' 武清区') INSERT INTO City(ID,Name)VALUES('111','宝坻区') INSERT INTO City(ID,Name)VALUES('112','蓟 县') INSERT INTO City(ID,Name)VALUES('113','宁河县') INSERT INTO City(ID,Name)VALUES('114','静海县')INSERT INTO Province(ID,Name)VALUES('4',' 重庆') INSERT INTO City(ID,Name)VALUES('46','永川市') INSERT INTO City(ID,Name)VALUES('47','黔江区') INSERT INTO City(ID,Name)VALUES('48','涪陵区') INSERT INTO City(ID,Name)VALUES('49','万洲区') INSERT INTO City(ID,Name)VALUES('115','渝中区') INSERT INTO City(ID,Name)VALUES('116','大渡口区') INSERT INTO City(ID,Name)VALUES('117','江北区') INSERT INTO City(ID,Name)VALUES('118','沙坪坝区') INSERT INTO City(ID,Name)VALUES('119','九龙坡区') INSERT INTO City(ID,Name)VALUES('120','南岸区') INSERT INTO City(ID,Name)VALUES('121','北碚区') INSERT INTO City(ID,Name)VALUES('122',' 万盛区') INSERT INTO City(ID,Name)VALUES('123','双桥区') INSERT INTO City(ID,Name)VALUES('124','渝北区') INSERT INTO City(ID,Name)VALUES('125','巴南区') INSERT INTO City(ID,Name)VALUES('126','长寿区')INSERT INTO Province(ID,Name)VALUES('5',' 黑龙江') INSERT INTO City(ID,Name)VALUES('50','哈尔滨') INSERT INTO City(ID,Name)VALUES('51','齐齐哈尔') INSERT INTO City(ID,Name)VALUES('52','牡丹江') INSERT INTO City(ID,Name)VALUES('127','鹤岗') INSERT INTO City(ID,Name)VALUES('128','双鸭山') INSERT INTO City(ID,Name)VALUES('129','鸡西') INSERT INTO City(ID,Name)VALUES('130','大庆') INSERT INTO City(ID,Name)VALUES('131','伊春') INSERT INTO City(ID,Name)VALUES('132','佳木斯') INSERT INTO City(ID,Name)VALUES('133','七台河') INSERT INTO City(ID,Name)VALUES('134','黑河') INSERT INTO City(ID,Name)VALUES('135','绥化') INSERT INTO City(ID,Name)VALUES('136','大兴安岭地区')INSERT INTO Province(ID,Name)VALUES('6','吉林') INSERT INTO City(ID,Name)VALUES('53','长春') INSERT INTO City(ID,Name)VALUES('54','吉林') INSERT INTO City(ID,Name)VALUES('137','四平') INSERT INTO City(ID,Name)VALUES('138','辽源') INSERT INTO City(ID,Name)VALUES('139','通化') INSERT INTO City(ID,Name)VALUES('140','白山') INSERT INTO City(ID,Name)VALUES('141','松原') INSERT INTO City(ID,Name)VALUES('142','白城') INSERT INTO City(ID,Name)VALUES('143','延边朝鲜族自治州') INSERT INTO City(ID,Name)VALUES('449','高新') INSERT INTO City(ID,Name)VALUES('450','延吉') INSERT INTO City(ID,Name)VALUES('451','梅河口')INSERT INTO Province(ID,Name)VALUES('7','辽宁') INSERT INTO City(ID,Name)VALUES('55','沈阳') INSERT INTO City(ID,Name)VALUES('56','大连') INSERT INTO City(ID,Name)VALUES('57','锦州') INSERT INTO City(ID,Name)VALUES('144','鞍山') INSERT INTO City(ID,Name)VALUES('145','抚顺') INSERT INTO City(ID,Name)VALUES('146','本溪') INSERT INTO City(ID,Name)VALUES('147','丹东') INSERT INTO City(ID,Name)VALUES('148','葫芦岛') INSERT INTO City(ID,Name)VALUES('149','营口') INSERT INTO City(ID,Name)VALUES('150','盘锦') INSERT INTO City(ID,Name)VALUES('151','阜新') INSERT INTO City(ID,Name)VALUES('152','辽阳') INSERT INTO City(ID,Name)VALUES('153','铁岭') INSERT INTO City(ID,Name)VALUES('154','朝阳') INSERT INTO City(ID,Name)VALUES('467','瓦房店')INSERT INTO Province(ID,Name)VALUES('8','内蒙古') INSERT INTO City(ID,Name)VALUES('58','呼和浩特') INSERT INTO City(ID,Name)VALUES('59','包头') INSERT INTO City(ID,Name)VALUES('155','乌海') INSERT INTO City(ID,Name)VALUES('156','赤峰') INSERT INTO City(ID,Name)VALUES('157','通辽') INSERT INTO City(ID,Name)VALUES('158','鄂尔多斯') INSERT INTO City(ID,Name)VALUES('160','乌兰察布盟') INSERT INTO City(ID,Name)VALUES('161','锡林郭勒盟') INSERT INTO City(ID,Name)VALUES('162','巴彦淖尔盟') INSERT INTO City(ID,Name)VALUES('163','阿拉善盟') INSERT INTO City(ID,Name)VALUES('164','兴安盟') INSERT INTO City(ID,Name)VALUES('468','巴彦淖尔') INSERT INTO City(ID,Name)VALUES('469','呼伦贝尔') INSERT INTO City(ID,Name)VALUES('470','集宁') INSERT INTO City(ID,Name)VALUES('471',' 乌兰浩特') INSERT INTO City(ID,Name)VALUES('472','锡林浩特')INSERT INTO Province(ID,Name)VALUES('9','宁夏') INSERT INTO City(ID,Name)VALUES('60','银川') INSERT INTO City(ID,Name)VALUES('165','石嘴山') INSERT INTO City(ID,Name)VALUES('166','吴忠') INSERT INTO City(ID,Name)VALUES('167','固原')