ISO 3166-1 alpha-2 MySQL 数据库(带区域)

发布于 2025-01-03 08:59:10 字数 170 浏览 3 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深空失忆 2025-01-10 08:59:10

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文