我需要创建一个 mysql 数据库,其中包含两个表“country_master”和“state_master”,其中包含欧洲的所有国家及其相应的州。
国家主表包含国家代码和国家名称,国家主表包含国家代码、国家名称和各自的国家代码。
是否有用于为欧洲国家创建状态的 mysql 查询。我有国家表。
这是我的国家/地区主查询,用于填充欧洲所有国家/地区。
INSERT INTO `country_master` (`country_codes`, `country_names`) VALUES
('AL', 'Albania'),
('AD', 'Andorra'),
('AT', 'Austria'),
('BE', 'Belgium'),
('BA', 'Bosnia and Herzegovina'),
('BG', 'Bulgaria'),
...
现在我需要创建一个表 state_master ,其中包含每个国家的所有州。例如:
INSERT INTO `country_master` (`state_codes`, `state_names`,`country codes`) VALUES
('1', 'state1','AL'),
('2', 'state2','AL'),
('3', 'state3','AD') etc...
有没有人有包含欧洲国家的查询或.sql 文件。