获取maxmind数据库中的区域名称

我已经下载了数据库城市
`Country`  `City`        `AccentCity`  `Region`  `Population`  `Latitude`  `Longitude`
af     amir kalay       Amir Kalay      16        0             34.6333     70.3333 
ad     aixas            Aixas           06        0             42.4833     1.4667 
and lot more records

我已经下载了另一个名为fips_10_4的数据库显示城市的状态

country,Region,State
AD,02,"Canillo"
AD,03,"Encamp"
AD,04,"La Massana"
AD,05,"Ordino"
AD,06,"Sant Julia de Loria"
AD,07,"Andorra la Vella"
AD,08,"Escaldes-Engordany"
AE,01,"Abu Dhabi"

现在,如果你认为我要求一些SQL查询,那么你错了.
一切都工作正常,但后来我知道我下载的文件
Maxmind website是不完整的,因为’fips_10_4’没有国家’af’和地区’16’的记录.可以有人帮我解决这个问题并告诉我下载这个完整文件的正确位置

解决方法

FIPS 10-4已发生变化.可以在 here找到更改列表.

特别是AF16(拉格曼)已改为AF35. maxmind使用新列表.

如果您需要旧代码和新代码,则可以找到它们here.您可以解析文件内容,并将数据库表替换为其中的信息.

相关文章

SELECT a.*,b.dp_name,c.pa_name,fm_name=(CASE WHEN a.fm_n...
if not exists(select name from syscolumns where name=&am...
select a.*,pano=a.pa_no,b.pa_name,f.dp_name,e.fw_state_n...
要在 SQL Server 2019 中设置定时自动重启,可以使用 Window...
您收到的错误消息表明数据库 'EastRiver' 的...
首先我需要查询出需要使用SQL Server Profiler跟踪的数据库标...