ISO 3166-1 alpha-2 MySQL 数据库(带区域)
我正在尝试使用 ISO 3166 2 代码数据库为国家/地区创建两个不同的表,并尝试添加包含区域(北美、欧洲、南美等)的自定义字段。
我一直在试图找出是否有任何开放的项目或数据包含此信息,但仍然没有运气。
如果有人能在这里给我一根骨头那就太好了。
问候,
巴勃罗
I'm trying to create two different tables with ISO 3166 2 code database for countries and trying to add a custom field with regions (North America, Europe, South America, etc).
I've been trying to find out if there is any open project or data with this info but still no luck.
If anyone could throw me a bone here it would be great.
Regards,
Pablo
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ISO 6166-2 标准定义了行政区域,即国家的二级区域。这可能就是您正在寻找的。
ISO 数据库可以从各种来源获取:
一旦你在MySql中获得了数据,添加您需要的列应该很容易。
The ISO 6166-2 standard defines administrative regions, ie 2nd-level regions for countries. This might be what you are looking for.
The ISO database can be obtained from various sources:
Once you have the data in MySql, it should be quite easy to add columns you need.