سؤال

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

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top