Schemas是一种机器可读的文档,描述了API的端点,它们的URLs和所支持的操作。
Schemas可以用于自动生成文档,也可以用来驱动可以与API交互的动态客户端库。

Core API

为了提供Schemas支持,REST框架使用了Core API。
安装coreapi

pip install coreapi

添加schema

REST框架既支持自定义Schemas视图,也支持自动生成Schemas视图。
由于我们使用的是viewset和route,我们可以简单地自动生成Schemas视图。

现在我们需要通过在URL中配置一个自动生成的Schemas视图,为我们的API添加一个Schemas。
编辑urls.py

from rest_framework.schemas import get_schema_view

schema_view = get_schema_view(title='Pastebin API')

urlpatterns = [
    url(r'^schema/$', schema_view),
    ...
]

我们通过命令行的形式访问该接口,并指定接收格式为corejson

(django_rest_framework) [root@iZuf62kvdczytcyqlvr2pgZ django_rest_framework]# http https://127.0.0.1:80/schema/ Accept:application/coreapi+json
HTTP/1.0 200 OK
Allow: GET, HEAD, OPTIONS
Content-Length: 1498
Content-Type: application/coreapi+json
Date: Fri, 01 Dec 2017 12:04:53 GMT
Server: WSGIServer/0.2 CPython/3.6.3
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "_meta": {
        "title": "Pastebin API",
        "url": "https://127.0.0.1/schema/"
    },
    "_type": "document",
    "snippets": {
        "highlight": {
            "_type": "link",
            "action": "get",
...

使用命令行客户端

既然我们的API提供了一个Schemas url,我们可以使用一个动态的客户端来与API进行交互。
为了演示,我们使用Core API客户端。
安装coreapi-cli

pip install coreapi-cli

使用命令行客户端访问schema接口

(django_rest_framework) [root@iZuf62kvdczytcyqlvr2pgZ django_rest_framework]# coreapi get https://127.0.0.1:80/schema/
<Pastebin API "https://127.0.0.1/schema/">
    snippets: {
        list()
        read(id)
        highlight(id)
    }
    users: {
        list()
        read(id)
    }

由于我们没有登录,所以我们现在只能看到只读的接口。

列出现有的所有snippets

(django_rest_framework) [root@iZuf62kvdczytcyqlvr2pgZ django_rest_framework]# coreapi action snippets list
[
    {
        "url": "https://127.0.0.1/snippets/1/",
        "id": 1,
        "highlight": "https://127.0.0.1/snippets/1/highlight/",
        "owner": "song",
        "title": "test_1",
        "code": "print('hello world')",
        "linenos": true,
        "language": "python",
        "style": "friendly"
    },
]

有些API需要一些命名参数

(django_rest_framework) [root@iZuf62kvdczytcyqlvr2pgZ django_rest_framework]# coreapi action snippets highlight --param id=1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "https://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
  <title>test_1</title>
  <meta http-equiv="content-type" content="text/html; charset=None">
  <style type="text/css">
td.linenos { background-color: #f0f0f0; padding-right: 10px; }
span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; }
pre { line-height: 125%; }
...

登录

需要写入的接口需要我们登录才能做,通过以下命令进行登录(test:qazxswedc为用户名和密码)

(django_rest_framework) [root@iZuf62kvdczytcyqlvr2pgZ django_rest_framework]# coreapi credentials add 127.0.0.1 test:qazxswedc --auth basic
Added credentials
127.0.0.1 "Basic dGVzdDpxYXp4c3dlZGM="

重载

(django_rest_framework) [root@iZuf62kvdczytcyqlvr2pgZ django_rest_framework]# coreapi reload
Pastebin API "https://127.0.0.1:80/schema/">
    snippets: {
        create(code, [title], [linenos], [language], [style])
        delete(id)
        highlight(id)
        list()
        partial_update(id, [title], [code], [linenos], [language], [style])
        read(id)
        update(id, code, [title], [linenos], [language], [style])
    }
    users: {
        list()
        read(id)
    }

我们现在可以对数据进行写操作了

coreapi action snippets delete --param id=1

关于

本人是初学Django REST framework,Django REST framework 学习纪要系列文章是我从官网文档学习后的初步消化成果,如有错误,欢迎指正。

学习用代码Github仓库:shelmingsong/django_rest_framework

本文参考的官网文档:Tutorial 7: Schemas & client libraries

博客更新地址

REST 框架包含了处理ViewSet的抽象,这样开发者就可以专注于API的状态和交互,而不用去管URL的构造,URL会按照
公共约定自动构造。
ViewSet类和View类差不多,不同的是ViewSet提供如read,update等方法,而不是get或是put
一个ViewSet类只绑定一组方法处理程序,当它被实例化为一组views时,通常用一个Router类来处理复杂的url。

重构代码以使用ViewSets

首先将我们现有的UserListUserDetail重构合并为UserViewSet
编辑views.py

from rest_framework import viewsets


class UserViewSet(viewsets.ReadOnlyModelViewSet):
    """
    这个ViewSet提供`list`和`detail`两个功能
    """
    queryset = User.objects.all()
    serializer_class = UserSerializer

这里我们使用的ReadOnlyModelViewSet类会提供默认的只读操作。
像以前一样,我们依然定义querysetserializer_class属性,只不过之前需要在两个类里面定义,现在只需要定义一遍。

接下来我们将现有的SnippetList, SnippetDetail, SnippetHighlight重构合并为SnippetViewSet
编辑views.py

from rest_framework.decorators import detail_route
from rest_framework.response import Response


class SnippetViewSet(viewsets.ModelViewSet):
    """
    这个ViewSet自动了`list`, `create`, `retrieve`, `update`和`destroy`功能
    我们需要另外定义一个`highlight`功能
    """
    queryset = Snippet.objects.all()
    serializer_class = SnippetSerializer
    permission_classes = (permissions.IsAuthenticatedOrReadOnly,
                          IsOwnerOrReadOnly)

    @detail_route(renderer_classes=[renderers.StaticHTMLRenderer])
    def highlight(self, request, *args, **kwargs):
        snippet = self.get_object()
        return Response(snippet.highlighted)

    def perform_create(self, serializer):
        serializer.save(owner=self.request.user)

这里我们使用的ModelViewSet类会提供默认的读写操作。
注意,我们在此同样使用了@detail_route装饰器来创建一个额外的功能,名为highlight,当标准的create, update, delete不够用时,这个装饰器能够用来添加任何额外的功能。
使用@detail_route装饰器定制的额外功能会默认使用GET请求,我们可以在装饰器的参数内定义methods参数来使用如POST等等的其它请求。
默认情况下,这种定制的额外功能会使用和方法名同名的url,如想要使用与方法名不同的url,可以在detail_route装饰器中定义url_path参数。

将ViewSets与URLs绑定

编辑urls.py

from rest_framework import renderers
from snippets.views import api_root
from snippets.views import SnippetViewSet
from snippets.views import UserViewSet

snippet_list = SnippetViewSet.as_view({
    'get': 'list',
    'post': 'create'
})

snippet_detail = SnippetViewSet.as_view({
    'get': 'retrieve',
    'put': 'update',
    'patch': 'partial_update',
    'delete': 'destroy'
})

snippet_highlight = SnippetViewSet.as_view(
    {'get': 'highlight'},
    renderer_classes=[renderers.StaticHTMLRenderer]
)

user_list = UserViewSet.as_view({
    'get': 'list'
})

user_detail = UserViewSet.as_view({
    'get': 'retrieve'
})

此时我们通过将http请求方式绑定到views的方法,从ViewSet类创建了一系列views。
接下来我们将这些views注册到url中
编辑urls.py

from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns

urlpatterns = format_suffix_patterns([
    url(r'^$', api_root),
    url(r'^snippets/$',
        snippet_list,
        name='snippet-list'),
    url(r'^snippets/(?P<pk>)[0-9]+/$',
        snippet_detail,
        name='snippet-detail'),
    url(r'^snippets/(?P<pk>[0-9]+)/highlight/$',
        snippet_highlight,
        name='snippet-highlight'),
    url(r'^users/$',
        user_list,
        name='user-list'),
    url(r'^users/(?P<pk>[0-9]+)/$',
        user_detail,
        name='user-detail')
])

使用Router

因为我们使用的是ViewSet类而不是View类,实际上我们不需要自己去设计URL。
通过使用Router类,我们只需要将合适的views注册到Router中,其它的事情就让它自动生成吧。

重写urls.py

from django.conf.urls import url
from django.conf.urls import include
from snippets import views
from rest_framework.routers import DefaultRouter


# 创建一个router并将viewsets注册上去
router = DefaultRouter()
router.register(r'snippets', views.SnippetViewSet)
router.register(r'users', views.UserViewSet)

urlpatterns = [
    url(r'^', include(router.urls)),
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
]

DefaultRouter类自动提供了根节点的url,所以我们不再需要单独去写。

关于

本人是初学Django REST framework,Django REST framework 学习纪要系列文章是我从官网文档学习后的初步消化成果,如有错误,欢迎指正。

学习用代码Github仓库:shelmingsong/django_rest_framework

本文参考的官网文档:Tutorial 6: ViewSets & Routers

博客更新地址

目前我们使用主键来表示模型之间的关系。在本章,我们将提高API的凝聚性和可读性。

为我们API的根节点创建URL

之前我们给snippetsusers创建了URL接口,但我们没有一个根节点的URL。
在此我们创建一个简单的,基于函数的views,并为它加上@api_view装饰器,修改snippets/views.py

from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.reverse import reverse


@api_view(['GET'])
def api_root(request, format=None):
    return Response({
        'users': reverse('user-list', request=request, format=format),
        'snippets': reverse('snippet-list', request=request, format=format)
    })

需要注意两点:
* 我们使用REST框架中的reverse方法来返回完全符合规则的url
* url参数将会与我们之后在snippets/urls中定义的相同

编写snippets/urls.py

url(r'^$', views.api_root),

为高亮代码创建URL

接下来我们需要为高亮代码提供接口,和其它的接口不同,这个接口我们需要展现渲染好的HTML页面,而不是JSON。
REST框架给我们提供了两种HTML展现形式,一种是使用模板渲染,一种是使用已经提前渲染好的HTML,在此我们使用第二种。
另外,我们需要考虑当创建代码高亮的view时,我们没有现成的类来继承,因为我们不是返回对象,而是返回对象的一个属性,我们需要重写父类的get方法。
编辑snippets/views.py:

from rest_framework import renderers
from rest_framework.response import Response

class SnippetHighlight(generics.GenericAPIView):
    queryset = Snippet.objects.all()
    renderer_classes = (renderers.StaticHTMLRenderer,)

    def get(self, request, *args, **kwargs):
        snippet = self.get_object()
        return Response(snippet.highlighted)

编写snippets/urls.py

url(r'^snippets/(?P<pk>[0-9]+)/highlight/$', views.SnippetHighlight.as_view()),

API之间使用超链接

在Web API中处理各个API之间的关系是一件非常头疼的事情,通常有以下方法表示关系:
* 使用主键
* 在API之间使用超链接
* 在关联API之间使用唯一字段表示
* 在关联API之间使用默认字符串表示
* 将一个API嵌套在另一个API类中
* 其它

REST框架支持上述所有方法,并且可以应用于正向、反向关系或类似外键这类自定义管理项。
在这里我们使用超链接来处理之间的关系,因此我们需要修改serializers,使用HyperlinkedModelSerializer替代原先的ModelSerializer:
* 默认不包含主键
* 使用HyperlinkedRelatedField时,需要在Meta子类的fields中包含“urls字段
* 使用
HyperlinkedRelatedField来代替PrimaryKeyRelatedField`表示关系

编辑snippets/serializers.py

class SnippetSerializer(serializers.HyperlinkedModelSerializer):
    owner = serializers.ReadOnlyField(source='owner.username')
    highlight = serializers.HyperlinkedIdentityField(view_name='snippet-highlight', format='html')

    class Meta:
        model = Snippet
        fields = ('url', 'id', 'highlight', 'owner',
                  'title', 'code', 'linenos', 'language', 'style')


class UserSerializer(serializers.HyperlinkedModelSerializer):
    snippets = serializers.HyperlinkedRelatedField(many=True, view_name='snippet-detail', read_only=True)

    class Meta:
        model = User
        fields = ('url', 'id', 'username', 'snippets')

这里在SnippetSerializer中新增了一个highlight属性,这个属性和url字段类型相同,区别在于它指向的是snippet-highlight而非snippet-detail
另外,由于我们有.json格式的后缀,我们需要指定highlight字段使用.html来返回相应的格式

确保URL都被命名

在此之前我们创建了一些url参数,在此罗列:
* 根节点指向了user-listsnippet-list
* snippet serializer包含了一个指向snippet-highlight的url的字段
* user serializer包含了指向snippet-detail的url的字段
* snippet serializeruser serializer都包含了url字段,这个字段默认指向{model_name}-detail,这里分别是snippet-detailuser-detail

编辑snippet/urls.py

from django.conf.urls import url, include
from rest_framework.urlpatterns import format_suffix_patterns
from snippets import views

# API endpoints
urlpatterns = format_suffix_patterns([
    url(r'^$', views.api_root),
    url(r'^snippets/$',
        views.SnippetList.as_view(),
        name='snippet-list'),
    url(r'^snippets/(?P<pk>[0-9]+)/$',
        views.SnippetDetail.as_view(),
        name='snippet-detail'),
    url(r'^snippets/(?P<pk>[0-9]+)/highlight/$',
        views.SnippetHighlight.as_view(),
        name='snippet-highlight'),
    url(r'^users/$',
        views.UserList.as_view(),
        name='user-list'),
    url(r'^users/(?P<pk>[0-9]+)/$',
        views.UserDetail.as_view(),
        name='user-detail')
])

# Login and logout views for the browsable API
urlpatterns += [
    url(r'^api-auth/', include('rest_framework.urls',
                               namespace='rest_framework')),
]

添加分页

后面可能会有很多个数据产生,我们需要对返回结果进行分页,修改tutorial/settings.py

REST_FRAMEWORK = {
    'PAGE_SIZE': 10
}

注意,所有关于REST框架的settings都在一个叫做REST_FRAMEWORK的字典中,这帮助我们与其他的settings分离开来。

关于

本人是初学Django REST framework,Django REST framework 学习纪要系列文章是我从官网文档学习后的初步消化成果,如有错误,欢迎指正。

学习用代码Github仓库:shelmingsong/django_rest_framework

本文参考的官网文档:Tutorial 5: Relationships & Hyperlinked APIs

博客更新地址

目前为止,我们的代码没有限制谁可以编辑和删除代码片段,此节我们需要实现以下功能
* 代码片段需要与创建者关联
* 只有通过验证的用户才能创建代码片段
* 只有创建者才能修改或删除代码片段
* 没有通过验证的用户拥有只读权限

给model添加字段

我们需要添加两个字段,一个用于存储代码片段的创建者信息,一个用于存储代码的高亮信息

    style = models.CharField(choices=STYLE_CHOICES, default='friendly', max_length=100)
    owner = models.ForeignKey('auth.User', related_name='snippets', on_delete=models.CASCADE)
    highlighted = models.TextField()

同时,我们需要在该模型类执行保存操作时,自动填充highlighted字段,使用pygments库。
首先,导入一些包

from pygments.lexers import get_lexer_by_name
from pygments.formatters.html import HtmlFormatter
from pygments import highlight

然后为Snippet重写父类的save方法

    def save(self, *args, **kwargs):
        """
        use the 'pygments' library to create a highlighted HTML
        representation of code snippet
        """
        lexer = get_lexer_by_name(self.language)
        linenos = self.linenos and 'table' or False
        options = self.title and {'title': self.title} or {}
        formatter = HtmlFormatter(style=self.style, linenos=linenos,
                                  full=True, **options)
        self.highlighted = highlight(self.code, lexer, formatter)
        super(Snippet, self).save(*args, **kwargs)

接下来需要迁移数据库,方便起见,删库,然后重新迁移

(django_rest_framework) [root@localhost tutorial]# rm -f tmp.db db.sqlite3 && \
> rm -rf snippets/migrations/ && \
> python manage.py makemigrations snippets && \
> python manage.py migrate
Migrations for 'snippets':
  snippets/migrations/0001_initial.py
    - Create model Snippet
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, sessions, snippets
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying sessions.0001_initial... OK
  Applying snippets.0001_initial... OK

为了测试API,我们需要创建一些用户,最快的方式就是通过createsuperuser命令

(django_rest_framework) [root@localhost tutorial]# python manage.py createsuperuser
Username (leave blank to use 'root'): song
Email address: shelmingsong@gmail.com
Password: 
Password (again): 
Superuser created successfully.
(django_rest_framework) [root@localhost tutorial]# python manage.py createsuperuser
Username (leave blank to use 'root'): user_1
Email address: user_1@gmail.com
Password: 
Password (again): 
Superuser created successfully.
(django_rest_framework) [root@localhost tutorial]# python manage.py createsuperuser
Username (leave blank to use 'root'): user_2
Email address: user_2@gmail.com
Password: 
Password (again): 
Superuser created successfully.

为用户模型添加接口

我们已经创建了三个用户,现在我们需要添加用户相关的接口,修改serializers.py

from django.contrib.auth.models import User

class UserSerializer(serializers.ModelSerializer):
    snippets = serializers.PrimaryKeyRelatedField(many=True, queryset=Snippet.objects.all())

    class Meta:
        model = User
        fields = ('id', 'username', 'snippets')

因为snippetsuser是一种反向的关联,默认不会包含入ModelSerializer类中,所以需要我们手动添加

我们也需要对views.py进行修改,由于用户页面为只读,所以继承于ListAPIViewRetrieveAPIView

from django.contrib.auth.models import User
from snippets.serializers import UserSerializer


class UserList(generics.ListAPIView):
    queryset = User.objects.all()
    serializer_class = UserSerializer


class UserDetail(generics.RetrieveAPIView):
    queryset = User.objects.all()
    serializer_class = UserSerializer

配置url.py

    url(r'^users/$', views.UserList.as_view()),
    url(r'^users/(?P<pk>[0-9]+)/$', views.UserDetail.as_view()),

关联User和Snippet

此时我们创建一个代码片段,是无法与用户关联的,因为用户信息是通过request获取的。
因此我们需要重写snippet的view中perform_create()方法,这个方法允许我们在对象保存前进行相关操作,处理任何有requestrequested URL传递进来的数据

修改views.py中的SnippetList类,添加perform_create()方法

    def perform_create(self, serializer):
        serializer.save(owner=self.request.user)

如此,新建代码片段时,会添加owner字段,该字段存储了request中的用户信息

更新serializer

之前我们在views中的SnippetList类中添加了perform_create方法,保存了owner信息,因而也需要在serializer中的SnippetSerializer类中添加owner信息,同时将owner添加进Meta子类的fields字段中

class SnippetSerializer(serializers.ModelSerializer):
    owner = serializers.ReadOnlyField(source='owner.username')

    class Meta:
        model = Snippet
        fields = ('id', 'title', 'code', 'linenos', 'language', 'style', 'owner')

这里我们使用了ReadOnlyField类型,这个类型是只读的,不能被更新,和Charfield(read_only=True)是一样的效果

添加权限认证

我们希望只有登录的用户能够去增加代码片段,未登录则只有查看的权限,此时我们需要用到IsAuthenticatedOrReadOnly

修改views.py,为snippet的两个类views添加permission_classes字段

from rest_framework import permissions


class SnippetList(generics.ListCreateAPIView):
    permission_classes = (permissions.IsAuthenticatedOrReadOnly, )


class SnippetDetail(generics.RetrieveUpdateDestroyAPIView):
    permission_classes = (permissions.IsAuthenticatedOrReadOnly, )

添加登陆接口

修改项目的urls.py

urlpatterns = [
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
]

r'^api-auth/'可以自定,namespace在Django 1.9 + 的版本中可以省略

运行Django服务器,访问your.domain/snippets/,点击右上角的登陆按钮,登陆我们之前创建的用户后,就可以创建代码片段了

创建完几个代码片段后,再访问your.domain/users/时,就可以看到每个用户创建了哪几个代码片段了

对象级别的权限

现在用户都可以对所有的snippets进行增删改查,我们要确保只有创建者可以对snippets进行改动或删除。

snippetsapp中,创建permissions.py

from rest_framework import permissions


class IsOwnerOrReadOnly(permissions.BasePermission):
    """
    custom permission to only allow owners of an object to edit it
    """
    def has_object_permission(self, request, view, obj):
        # allow all user to read
        if request.method in permissions.SAFE_METHODS:
            return True

        # only allow owner to edit
        return obj.owner == request.user

views.py中添加权限

from snippets.permissions import IsOwnerOrReadOnly

class SnippetDetail(generics.RetrieveUpdateDestroyAPIView):
    permission_classes = (permissions.IsAuthenticatedOrReadOnly,
                          IsOwnerOrReadOnly)

此时我们访问your.domain/snippets/1/,若用户未登录或登录用户不是该snippets的创建者,则只有读的权限,页面上表现为没有DELETE(上方中间)和PUT(右下角)按钮

通过接口进行权限认证

之前我们是通过浏览器页面进行登录的,而当我们直接使用接口去请求时,如果没有进行登录,而对某个snippet进行修改或是创建一个新的snippet,则会报错

(django_rest_framework) [root@localhost django_rest_framework]# http POST https://127.0.0.1:80/snippets/ code="hahah"
HTTP/1.0 403 Forbidden
Allow: GET, POST, HEAD, OPTIONS
Content-Length: 58
Content-Type: application/json
Date: Tue, 28 Nov 2017 14:56:18 GMT
Server: WSGIServer/0.2 CPython/3.6.3
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "detail": "Authentication credentials were not provided."
}

(django_rest_framework) [root@localhost django_rest_framework]# http POST https://127.0.0.1:80/snippets/1/ code="hahah"
HTTP/1.0 403 Forbidden
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Length: 58
Content-Type: application/json
Date: Tue, 28 Nov 2017 14:56:26 GMT
Server: WSGIServer/0.2 CPython/3.6.3
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "detail": "Authentication credentials were not provided."
}

我们在发送请求时,提供用户名和密码,就可以进行操作了

(django_rest_framework) [root@localhost django_rest_framework]# http -a your_username:your_password POST https://127.0.0.1:80/snippets/ code="hahah"
HTTP/1.0 201 Created
Allow: GET, POST, HEAD, OPTIONS
Content-Length: 104
Content-Type: application/json
Date: Tue, 28 Nov 2017 14:58:10 GMT
Server: WSGIServer/0.2 CPython/3.6.3
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "code": "hahah",
    "id": 4,
    "language": "python",
    "linenos": false,
    "owner": "song",
    "style": "friendly",
    "title": ""
}

关于

本人是初学Django REST framework,Django REST framework 学习纪要系列文章是我从官网文档学习后的初步消化成果,如有错误,欢迎指正。

学习用代码Github仓库:shelmingsong/django_rest_framework

本文参考的官网文档:Tutorial 4: Authentication & Permissions

博客更新地址

基于类的views

之前我们创建的views都是基于函数的,我们也可以基于类来写views

from snippets.models import Snippet
from snippets.serializers import SnippetSerializer
from django.http import Http404
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status


class SnippetList(APIView):
    """
    list all snippets, or create a new snippet
    """
    def get(self, request, format=None):
        snippets = Snippet.objects.all()
        serializer = SnippetSerializer(snippets, many=True)
        return Response(serializer.data)

    def post(self, request, format=None):
        serializer = SnippetSerializer(data=request.data)
        if serializer.is_valid():
            serializer.save()
            return Response(serializer.data, status=status.HTTP_201_CREATED)
        return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)


class SnippetDetail(APIView):
    """
    retrieve, update or delete a snippet instance
    """
    def get_object(self, pk):
        try:
            return Snippet.objects.get(pk=pk)
        except Snippet.DoesNotExist:
            raise Http404

    def get(self, request, pk, format=None):
        snippet = self.get_object(pk)
        serializer = SnippetSerializer(snippet)
        return Response(serializer.data)

    def put(self, request, pk, format=None):
        snippet = self.get_object(pk)
        serializer = SnippetSerializer(snippet, data=request.data)
        if serializer.is_valid():
            serializer.save()
            return Response(serializer.data)
        return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)

    def delete(self, request, pk, format=None):
        snippet = self.get_object()
        snippet.delete()
        return Response(status=status.HTTP_204_NO_CONTENT)

接下来相应地去修改urls.py

from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from snippets import views

urlpatterns = [
    url(r'^snippets/$', views.SnippetList.as_view()),
    url(r'^snippets/(?P<pk>[0-9]+)/$', views.SnippetDetail.as_view()),
]

urlpatterns = format_suffix_patterns(urlpatterns)

使用mixins

相比函数型views来说,基于类的views可以很容易地通过继承来去复用代码。
刚才我们创建的API中,基本都是数据库的增删改查操作,这种常见的操作都已经在REST框架中定义好了,在mixin类中,我们只需要去继承它。
再次重构views.py

from snippets.models import Snippet
from snippets.serializers import SnippetSerializer
from rest_framework import mixins
from rest_framework import generics


class SnippetList(mixins.ListModelMixin,
                  mixins.CreateModelMixin,
                  generics.GenericAPIView):
    queryset = Snippet.objects.all()
    serializer_class = SnippetSerializer

    def get(self, request, *args, **kwargs):
        return self.list(request, *args, **kwargs)

    def post(self, request, *args, **kwargs):
        return self.create(request, *args, **kwargs)

SnippetList这个类,首先继承于GenericAPIView,这个类提供了核心功能,接下来是继承于ListModelMixinCreateModelMixin类,这两个类分别提供了.list().create()功能。

接下来重构下一个API

class SnippetDetail(mixins.RetrieveModelMixin,
                    mixins.UpdateModelMixin,
                    mixins.DestroyModelMixin,
                    generics.GenericAPIView):
    queryset = Snippet.objects.all()
    serializer_class = SnippetSerializer

    def get(self, request, *args, **kwargs):
        return self.retrieve(request, *args, **kwargs)

    def put(self, request, *args, **kwargs):
        return self.update(request, *args, **kwargs)

    def delete(self, request, *args, **kwargs):
        return self.destroy(request, *args, **kwargs)

RetrieveModelMixin, UpdateModelMixin, DestroyModelMixin分别提供了retrieve(), update(), destroy()功能

继承更通用的generic类

from snippets.models import Snippet
from snippets.serializers import SnippetSerializer
from rest_framework import generics


class SnippetList(generics.ListCreateAPIView):
    queryset = Snippet.objects.all()
    serializer_class = SnippetSerializer


class SnippetDetail(generics.RetrieveUpdateDestroyAPIView):
    queryset = Snippet.objects.all()
    serializer_class = SnippetSerializer

关于

本人是初学Django REST framework,Django REST framework 学习纪要系列文章是我从官网文档学习后的初步消化成果,如有错误,欢迎指正。

学习用代码Github仓库:shelmingsong/django_rest_framework

本文参考的官网文档:Tutorial 3: Class-based Views

博客更新地址

Request 对象

REST 框架引入了Request对象,继承于HttpRequest,相比HttpRequest提供了更多请求解析,最核心的功能是request.data属性,类似于request.POST,以下是不同之处。
* request.POST
1. 只能处理form表单数据;
2. 只能处理POST请求。
* request.data
1. 能够处理任意一种数据;
2. 能够处理POST、PUT、PATCH请求

Response对象

REST框架也引入了Response对象,它是一个TemplateResponse类型,能够将未处理的文本转换为合适的类型返回给客户端

return Response(data)

状态码

REST框架提供了更可读的状态信息,比如HTTP_400_BAD_REQUEST

API views封装

  • 对于函数views,可以使用@api_view装饰器
  • 对于类views,可以继承于APIView

views应用

  • 修改snippets/views.py
  1. GET获取所有code snippets,与新建code snippet的接口
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
from snippets.models import Snippet
from snippets.serializers import SnippetSerializer


@api_view(['GET', 'POST'])
def snippet_list(request):
    """
    list all code snippets, or create a new snippet
    """
    if request.method == 'GET':
        snippets = Snippet.objects.all()
        serializer = SnippetSerializer(snippets, many=True)
        return Response(serializer.data)

    elif request.method == 'POST':
        serializer = SnippetSerializer(data=request.data)
        if serializer.is_valid():
            serializer.save()
            return Response(serializer.data, status=status.HTTP_201_CREATED)
        return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
  1. GET获取单个code snippetPUT更新单个code snippetDELETE删除单个code snippet
@api_view(['GET', 'PUT', 'DELETE'])
def snippet_detail(request, pk):
    """
    retrieve, update or delete code snippet
    """
    try:
        snippet = Snippet.objects.get(pk=pk)
    except Snippet.DoseNotExist:
        return Response(status=status.HTTP_404_NOT_FOUND)

    if request.method == 'GET':
        serializer = SnippetSerializer(snippet)
        return Response(serializer.data)

    elif request.method == 'PUT':
        serializer = SnippetSerializer(snippet, data=request.data)
        if serializer.is_valid():
            serializer.save()
            return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)

    elif request.method == 'DELETE':
        snippet.delete()
        return Response(status=status.HTTP_204_NO_CONTENT)

和上一步的views明显不同的是,我们不再需要关心输入(request)输出(response)的数据类型,REST框架已经帮我们处理好了

为URLs添加可选格式后缀

如上一步所说的,REST框架已经帮我们处理好了输入(request)输出(response)的数据类型,也就意味着一个API可以去处理不同的数据类型,在URLs中使用格式后缀可以帮助我们处理类似这样的url: https://192.168.0.103/snippets.json

  • 首先我们需要在views中添加形参format=None
def snippet_list(request, format=None):

def snippet_list(request, format=None):
  • 然后我们修改urls.py
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from snippets import views

urlpatterns = [
    url(r'^snippets/$', views.snippet_list),
    url(r'^snippets/(?P<pk>[0-9]+)$', views.snippet_detail),
]

urlpatterns = format_suffix_patterns(urlpatterns)

调用接口

  • 在启动服务器前,先修改settings.py中的ALLOWED_HOSTS,方便后面通过外部浏览器请求接口
ALLOWED_HOSTS = ['*']
  • 启动服务器(别管时间,每天晚上回来,让Win10从睡眠状态恢复,虚拟机的IP和时区总会变 🙁 ,懒得每次都改了)
(django_rest_framework) [root@localhost tutorial]# python manage.py runserver 0:80
Performing system checks...

System check identified no issues (0 silenced).
November 21, 2017 - 02:47:02
Django version 1.11.7, using settings 'tutorial.settings'
Starting development server at https://0:80/
Quit the server with CONTROL-C.
  • 打开另一个shell窗口,发送请求
(django_rest_framework) [root@localhost django_rest_framework]# http https://127.0.0.1:80/snippets/
HTTP/1.0 200 OK
Allow: POST, GET, OPTIONS
Content-Length: 505
Content-Type: application/json
Date: Mon, 20 Nov 2017 18:51:07 GMT
Server: WSGIServer/0.2 CPython/3.6.3
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

[
    {
        "code": "foo = \"bar\n\"",
        "id": 1,
        "language": "python",
        "linenos": false,
        "style": "friendly",
        "title": ""
    },
    {
        "code": "print \"hello, world\"\n",
        "id": 2,
        "language": "python",
        "linenos": false,
        "style": "friendly",
        "title": ""
    },
...
]
  • 我们可以添加HTTP HEADERS来控制返回数据的数据类型
  1. json
(django_rest_framework) [root@localhost django_rest_framework]# http https://127.0.0.1:80/snippets/ Accept:application/json
HTTP/1.0 200 OK
Allow: POST, GET, OPTIONS
Content-Length: 505
Content-Type: application/json
Date: Mon, 20 Nov 2017 18:52:27 GMT
Server: WSGIServer/0.2 CPython/3.6.3
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

[
    {
        "code": "foo = \"bar\n\"",
        "id": 1,
        "language": "python",
        "linenos": false,
        "style": "friendly",
        "title": ""
    },
    {
        "code": "print \"hello, world\"\n",
        "id": 2,
        "language": "python",
        "linenos": false,
        "style": "friendly",
        "title": ""
    },
]
  1. html
(django_rest_framework) [root@localhost django_rest_framework]# http https://127.0.0.1:80/snippets/ Accept:text/html
HTTP/1.0 200 OK
Allow: POST, GET, OPTIONS
Content-Length: 8139
Content-Type: text/html; charset=utf-8
Date: Mon, 20 Nov 2017 18:53:39 GMT
Server: WSGIServer/0.2 CPython/3.6.3
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

<!DOCTYPE html>
<html>
  <head>



        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta name="robots" content="NONE,NOARCHIVE" />


      <title>Snippet List – Django REST framework</title>



          <link rel="stylesheet" type="text/css" href="/static/rest_framework/css/bootstrap.min.css"/>
...
  • 或者我们直接可以添加url后缀来控制返回数据的数据类型
  1. json
(django_rest_framework) [root@localhost django_rest_framework]# http https://127.0.0.1:80/snippets.json
HTTP/1.0 200 OK
Allow: POST, GET, OPTIONS
Content-Length: 505
Content-Type: application/json
Date: Mon, 20 Nov 2017 18:55:27 GMT
Server: WSGIServer/0.2 CPython/3.6.3
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

[
    {
        "code": "foo = \"bar\n\"",
        "id": 1,
        "language": "python",
        "linenos": false,
        "style": "friendly",
        "title": ""
    },
    {
        "code": "print \"hello, world\"\n",
        "id": 2,
        "language": "python",
        "linenos": false,
        "style": "friendly",
        "title": ""
    },
...
]
  1. html
(django_rest_framework) [root@localhost django_rest_framework]# http https://127.0.0.1:80/snippets.api
HTTP/1.0 200 OK
Allow: POST, GET, OPTIONS
Content-Length: 8160
Content-Type: text/html; charset=utf-8
Date: Mon, 20 Nov 2017 18:56:35 GMT
Server: WSGIServer/0.2 CPython/3.6.3
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

<!DOCTYPE html>
<html>
  <head>



        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta name="robots" content="NONE,NOARCHIVE" />


      <title>Snippet List – Django REST framework</title>



          <link rel="stylesheet" type="text/css" href="/static/rest_framework/css/bootstrap.min.css"/>
          <link rel="stylesheet" type="text/css" href="/static/rest_framework/css/bootstrap-tweaks.css"/>
...
  • 类似的,我们可以发送不同类型的数据给API
  1. post form data
(django_rest_framework) [root@localhost django_rest_framework]# http --form POST https://127.0.0.1:80/snippets/ code="hello world post form data"
HTTP/1.0 201 Created
Allow: POST, GET, OPTIONS
Content-Length: 110
Content-Type: application/json
Date: Mon, 20 Nov 2017 18:58:58 GMT
Server: WSGIServer/0.2 CPython/3.6.3
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "code": "hello world post form data",
    "id": 6,
    "language": "python",
    "linenos": false,
    "style": "friendly",
    "title": ""
}
  1. post json data
(django_rest_framework) [root@localhost django_rest_framework]# http --json POST https://127.0.0.1:80/snippets/ code="hello world post json data"
HTTP/1.0 201 Created
Allow: POST, GET, OPTIONS
Content-Length: 110
Content-Type: application/json
Date: Mon, 20 Nov 2017 18:59:44 GMT
Server: WSGIServer/0.2 CPython/3.6.3
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "code": "hello world post json data",
    "id": 7,
    "language": "python",
    "linenos": false,
    "style": "friendly",
    "title": ""
}
  • 在请求时添加--debug后缀可以查看请求的详细信息
(django_rest_framework) [root@localhost django_rest_framework]# http --json POST https://127.0.0.1:80/snippets/ code="hello world post json data" --debug
HTTPie 0.9.9
Requests 2.18.4
Pygments 2.2.0
Python 3.6.3 (default, Nov  4 2017, 22:19:41) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
/root/.pyenv/versions/3.6.3/envs/django_rest_framework/bin/python
Linux 3.10.0-693.el7.x86_64

<Environment {
    "colors": 8,
    "config": {
        "__meta__": {
            "about": "HTTPie configuration file",
            "help": "https://httpie.org/docs#config",
            "httpie": "0.9.9"
        },
        "default_options": "[]"
    },
    "config_dir": "/root/.httpie",
    "is_windows": false,
    "stderr": "<_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>",
    "stderr_isatty": true,
    "stdin": "<_io.TextIOWrapper name='<stdin>' mode='r' encoding='UTF-8'>",
    "stdin_encoding": "UTF-8",
    "stdin_isatty": true,
    "stdout": "<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>",
    "stdout_encoding": "UTF-8",
    "stdout_isatty": true
}>

>>> requests.request(**{
    "allow_redirects": false,
    "auth": "None",
    "cert": "None",
    "data": "{\"code\": \"hello world post json data\"}",
    "files": {},
    "headers": {
        "Accept": "application/json, */*",
        "Content-Type": "application/json",
        "User-Agent": "HTTPie/0.9.9"
    },
    "method": "post",
    "params": {},
    "proxies": {},
    "stream": true,
    "timeout": 30,
    "url": "https://127.0.0.1:80/snippets/",
    "verify": true
})

HTTP/1.0 201 Created
Allow: POST, GET, OPTIONS
Content-Length: 110
Content-Type: application/json
Date: Mon, 20 Nov 2017 19:00:45 GMT
Server: WSGIServer/0.2 CPython/3.6.3
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "code": "hello world post json data",
    "id": 9,
    "language": "python",
    "linenos": false,
    "style": "friendly",
    "title": ""
}
  • 在浏览器中发送请求
  1. 在浏览器中发送请求,默认会返回html类型的数据

  2. 可以像之前那样,加上url后缀,来请求json数据

关于

本人是初学Django REST framework,Django REST framework 学习纪要系列文章是我从官网文档学习后的初步消化成果,如有错误,欢迎指正。

学习用代码Github仓库:shelmingsong/django_rest_framework

本文参考的官网文档:Tutorial 2: Requests and Responses

博客更新地址

依赖

  • Python 3.6.3 [ Python (2.7, 3.2, 3.3, 3.4, 3.5, 3.6) 都可以 ]
  • Django 1.11.7 [ Django (1.10, 1.11, 2.0 alpha) 都可以 ]

安装、创建并配置虚拟环境

mkdir django_rest_framework && cd django_rest_framework
pyenv virtualenv 3.6.3 django_rest_framework
pyenv local django_rest_framework
  • 安装相关包
pip install django djangorestframework
pip install pygments  # 项目中会用到,提供代码高亮功能

Django项目初始化

  • 创建tutorial项目与snippets应用
django-admin startproject tutorial
cd tutorial/

python manage.py startapp snippets
  • snippets应用和rest_framework添加进settings.pyINSTALLED_APPS (如果Django版本小于1.9,则需要将snippets.apps.SnippetsConfig替换为snippets)
INSTALLED_APPS = (
    ...
    'rest_framework',
    'snippets.apps.SnippetsConfig',
)

创建Model

我们需要创建一个Snippet模型来存储代码片段。
* 修改snippets/models.py文件

from django.db import models
from pygments.lexers import get_all_lexers
from pygments.styles import get_all_styles

# 提取出了pygments支持的所有语言的词法分析程序
LEXERS = [item for item in get_all_lexers() if item[1]]
# 提取出了pygments支持的所有语言列表
LANGUAGE_CHOICES = sorted([(item[1][0], item[0]) for item in LEXERS])
# 提取出了pygments支持的所有格式化风格列表
STYLE_CHOICES = sorted((item, item) for item in get_all_styles())


class Snippet(models.Model):
    created = models.DateTimeField(auto_now_add=True)  # 创建时间
    title = models.CharField(max_length=100, blank=True, default='')  # 标题
    code = models.TextField()  # 代码
    linenos = models.BooleanField(default=False)  # 是否显示行号
    language = models.CharField(choices=LANGUAGE_CHOICES, default='python', max_length=100)  # 语言
    style = models.CharField(choices=STYLE_CHOICES, default='friendly', max_length=100)  # 格式化风格

    class Meta:
        ordering = ('created',)
  • 数据库迁移
python manage.py makemigrations snippets
python manage.py migrate

创建Serializer类

  • snippets文件夹内创建serializers.py文件
from rest_framework import serializers
from snippets.models import LANGUAGE_CHOICES
from snippets.models import Snippet
from snippets.models import STYLE_CHOICES


class SnippetSerializer(serializers.Serializer):
    id = serializers.IntegerField(read_only=True)
    title = serializers.CharField(required=False, allow_blank=True, max_length=100)
    code = serializers.CharField(style={'base_template': 'textarea.html'})
    linenos = serializers.BooleanField(required=False)
    language = serializers.ChoiceField(choices=LANGUAGE_CHOICES, default='python')
    style = serializers.ChoiceField(choices=STYLE_CHOICES, default='friendly')

    def create(self, validated_data):
        """
        Create and return a new `Snippet` instance, given the validated data.
        """
        return Snippet.objects.create(**validated_data)

    def update(self, instance, validated_data):
        """
        Update and return an existing `Snippet` instance, given the validated data.
        """
        instance.title = validated_data.get('title', instance.title)
        instance.code = validated_data.get('code', instance.code)
        instance.linenos = validated_data.get('linenos', instance.linenos)
        instance.language = validated_data.get('language', instance.language)
        instance.style = validated_data.get('style', instance.style)
        instance.save()
        return instance

使用Serializers类

  • 打开Django shell
python manage.py shell
  • 创建两个Serializers对象
from snippets.models import Snippet
from snippets.serializers import SnippetSerializer
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser

snippet = Snippet(code='foo = "bar"\n')
snippet.save()

snippet = Snippet(code='print "hello, world"\n')
snippet.save()

序列化

  • 序列化一个对象
In [11]: serializer = SnippetSerializer(snippet)

In [12]: serializer.data
Out[12]: 
ReturnDict([('id', 2),
            ('title', ''),
            ('code', 'print "hello, world"\n'),
            ('linenos', False),
            ('language', 'python'),
            ('style', 'friendly')])
  • 将data数据转换为json
In [13]: content = JSONRenderer().render(serializer.data)

In [14]: content
Out[14]: b'{"id":2,"title":"","code":"print \\"hello, world\\"\\n","linenos":false,"language":"python","style":"friendly"}'

反序列化

  • 将JSON数据转为Python原生数据类型(字典)
In [15]: from django.utils.six import BytesIO

In [16]: stream = BytesIO(content)

In [17]: data = JSONParser().parse(stream)

In [18]: data
Out[18]: 
{'code': 'print "hello, world"\n',
 'id': 2,
 'language': 'python',
 'linenos': False,
 'style': 'friendly',
 'title': ''}
  • 将Python原生数据类型(字典)转换为对象
In [19]: serializer = SnippetSerializer(data=data)

In [20]: serializer.is_valid()
Out[20]: True

In [21]: serializer.validated_data
Out[21]: 
OrderedDict([('title', ''),
             ('code', 'print "hello, world"'),
             ('linenos', False),
             ('language', 'python'),
             ('style', 'friendly')])

In [22]: serializer.save()
Out[22]: <Snippet: Snippet object>
  • 可以序列化查询集,只需要添加many=True参数
In [23]: serializer = SnippetSerializer(Snippet.objects.all(), many=True)

In [24]: serializer.data
Out[24]: [OrderedDict([('id', 1), ('title', ''), ('code', 'foo = "bar\n"'), ('linenos', False), ('language', 'python'), ('style', 'friendly')]), OrderedDict([('id', 2), ('title', ''), ('code', 'print "hello, world"\n'), ('linenos', False), ('language', 'python'), ('style', 'friendly')]), OrderedDict([('id', 3), ('title', ''), ('code', 'print "hello, world"'), ('linenos', False), ('language', 'python'), ('style', 'friendly')])]

使用ModelSerializer

刚才定义的SnippetSerializer类中的类中有很多是和之前在models.py定义的内容重复,其实我们还可以使SnippetSerializer类继承于ModelSerializer,来减少这种重复定义。

  • SnippetSerializer类重新定义,为如下内容:
class SnippetSerializer(serializers.ModelSerializer):
    class Meta:
        model = Snippet
        fields = ('id', 'title', 'code', 'linenos', 'language', 'style')
  • 打开Django shell
python manage.py shell
  • 查看SnippetSerializer
In [1]: from snippets.serializers import SnippetSerializer

In [2]: serializer = SnippetSerializer()

In [3]: print(repr(serializer))
SnippetSerializer():
    id = IntegerField(label='ID', read_only=True)
    title = CharField(allow_blank=True, max_length=100, required=False)
    code = CharField(style={'base_template': 'textarea.html'})
    linenos = BooleanField(required=False)
    language = ChoiceField(choices=[('abap', 'ABAP'), ('abnf', 'ABNF'), ('ada', 'Ada'), ('adl', 'ADL'), ('agda', 'Agda'), ('aheui', 'Aheui'), ('ahk', 'autohotkey'),
 ...

至此我们发现,继承于ModelSerializer类,有两个非常大的作用:
1. 不用重复去定义类属性
2. 自动拥有create()update()方法

Serializer在Django views内的简单运用

  • 此处未使用REST framework的其它特性,仅使用常规的Django views
  • 此处的写法有很多漏洞,仅作为教程中测试展示使用,不能直接应用于生产环境

配置views

打开snippets/views.py
* 导入相关包

from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from django.views.decorators.csrf import csrf_exempt
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser
from snippets.models import Snippet
from snippets.serializers import SnippetSerializer
  • 创建一个返回所有对象和对象增功能的API
@csrf_exempt
def snippet_list(request):
    """
    List all code snippets, or create a new snippet.
    """
    if request.method == 'GET':
        snippets = Snippet.objects.all()
        serializer = SnippetSerializer(snippets, many=True)
        return JsonResponse(serializer.data, safe=False)

    elif request.method == 'POST':
        data = JSONParser().parse(request)
        serializer = SnippetSerializer(data=data)
        if serializer.is_valid():
            serializer.save()
            return JsonResponse(serializer.data, status=201)
        return JsonResponse(serializer.errors, status=400)
  • 创建一个对象查、改、删功能的API
@csrf_exempt
def snippet_detail(request, pk):
    """
    Retrieve, update or delete a code snippet.
    """
    try:
        snippet = Snippet.objects.get(pk=pk)
    except Snippet.DoesNotExist:
        return HttpResponse(status=404)

    if request.method == 'GET':
        serializer = SnippetSerializer(snippet)
        return JsonResponse(serializer.data)

    elif request.method == 'PUT':
        data = JSONParser().parse(request)
        serializer = SnippetSerializer(snippet, data=data)
        if serializer.is_valid():
            serializer.save()
            return JsonResponse(serializer.data)
        return JsonResponse(serializer.errors, status=400)

    elif request.method == 'DELETE':
        snippet.delete()
        return HttpResponse(status=204)

配置urls

  • 创建snippets/urls.py
from django.conf.urls import url
from snippets import views

urlpatterns = [
    url(r'^snippets/$', views.snippet_list),
    url(r'^snippets/(?P<pk>[0-9]+)/$', views.snippet_detail),
]
  • 配置项目根urls.py
from django.conf.urls import url
from django.conf.urls import include
from django.contrib import admin

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^', include('snippets.urls')),
]

测试接口

  • 启动服务
(django_rest_framework) [root@localhost tutorial]# python manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).
November 20, 2017 - 23:01:29
Django version 1.11.7, using settings 'tutorial.settings'
Starting development server at https://127.0.0.1:8000/
Quit the server with CONTROL-C.
  • 打开另一个shell窗口
  • 安装httpie包,用于模拟http请求

pip install httpie
  • 发送请求,获取所有snippets对象
(django_rest_framework) [root@localhost tutorial]# http https://127.0.0.1:8000/snippets/
HTTP/1.0 200 OK
Content-Length: 352
Content-Type: application/json
Date: Mon, 20 Nov 2017 15:03:10 GMT
Server: WSGIServer/0.2 CPython/3.6.3
X-Frame-Options: SAMEORIGIN

[
    {
        "code": "foo = \"bar\n\"",
        "id": 1,
        "language": "python",
        "linenos": false,
        "style": "friendly",
        "title": ""
    },
    {
        "code": "print \"hello, world\"\n",
        "id": 2,
        "language": "python",
        "linenos": false,
        "style": "friendly",
        "title": ""
    },
]
  • 发送请求,获取主键为2的snippets对象
(django_rest_framework) [root@localhost tutorial]# http https://127.0.0.1:8000/snippets/2/
HTTP/1.0 200 OK
Content-Length: 119
Content-Type: application/json
Date: Mon, 20 Nov 2017 15:03:17 GMT
Server: WSGIServer/0.2 CPython/3.6.3
X-Frame-Options: SAMEORIGIN

{
    "code": "print \"hello, world\"\n",
    "id": 2,
    "language": "python",
    "linenos": false,
    "style": "friendly",
    "title": ""
}

关于

本人是初学Django REST framework,Django REST framework 学习纪要系列文章是我从官网文档学习后的初步消化成果,如有错误,欢迎指正。

学习用代码Github仓库:shelmingsong/django_rest_framework

本文参考的官网文档:Tutorial 1: Serialization

博客更新地址

环境

CentOS-7-x86_64-Minimal-1708

开发原因

  • 现有博客基于Hexo&Github,想搭建一个自己全栈开发的博客
  • 用于实验新技术
  • 阿里云买了得用起来

技术栈

  • 下述版本号为待定,但如果使用其它版本的话只会用更新的
  • 如有用到其它技术会及时更新下表
工具 版本 用途
Docker 17.06.2 开发环境容器化
Python 3.6.3 后端开发语言
Django 1.11.7 后端框架
Html/CSS/JS / 前端开发语言
jQuery 3.2.1 前端框架
Bootstrap 3.3.7 前端框架
Celery 4.1.0 异步任务
django-celery-beat 1.0.1 定时任务
Gunicorn 19.7.1 Web服务器
Nginx 1.12.2 负载均衡
MySQL 5.7.20 数据库
Redis 3.2 缓存&&消息队列
shell / 自动化部署脚本基础
expect 5.45-14 自动化部署脚本处理交互

开发工具

  • 如有用到其它工具会及时更新下表
工具 用途
Pycharm IDE
Navicat 数据库调试
xshell ssh本地虚拟机和远程服务器
xftp 与本地虚拟机和远程服务器传输文件
VMware Workstation 虚拟机
Postman 接口调试
Chrome 前端调试
SwitchHosts 切换hosts
Sublime 草稿
印象笔记/马克飞象 笔记
网易云音乐 安抚Debug时暴躁的心

代码仓库地址

https://github.com/shelmingsong/Blog

博客更新地址

0 环境:

Ubuntu 16.04

1 准备工作

2 安装并配置虚拟环境(本机)

2.1 更新软件源

sudo apt-get update
sudo apt-get upgrade
  • update是更新软件列表
  • upgrade是对比本地软件版本和线上最新软件版本,然后升级

2.2 安装虚拟环境

sudo pip2 install virtualenv
  • virtualenv是虚拟环境安装包,创建虚拟环境可以更好地控制包的版本,包的版本不会因为2.1中的升级操作而升级,保证了项目的稳定性
  • 不同虚拟环境之间的运行环境相互独立,互不干扰
sudo pip2 install virtualenvwrapper
  • virtualenvwrappervirtualenv的扩展管理包,可以将所有的虚拟环境整合在一个目录下
  • 使用前需要先进行以下配置
  1. 创建虚拟环境管理目录
mkdir ~/.virtualenvs
  1. 打开.bashrc
sudo vi ~/.bashrc 
  1. .bashrc的末尾增加以下内容
export WORKON_HOME=$HOME/.virtualenvs  # 所有虚拟环境存储的目录
source /usr/local/bin/virtualenvwrapper.sh
  1. 启用配置文件
source ~/.bashrc

2.3 创建虚拟环境

mkvirtualenv django_blog
  • 创建虚拟环境需要联网
  • 创建完虚拟环境之后会自动进入虚拟环境,可以通过命令行前缀(下图红框)判断是否在虚拟环境内
  • 虚拟环境常用命令
# 创建虚拟环境
mkvirtualenv <name>

# 列出所有虚拟环境
workon TAB*2

# 进入虚拟环境
workon <name>

# 退出虚拟环境
deactivate

# 删除虚拟环境
rmvirtualenv <name>

2.4 安装django包

pip install django==1.8.2
  • 包后面加==用来选择包的版本

3 创建一个django演示项目(本机)

3.1 创建项目

django-admin startproject project_test
  • 项目建立在home目录或其子目录,以免权限问题带来的不便

3.2 创建应用

  • 进入项目目录并查看项目结构
cd project_test/
tree
  • 项目目前结构如下
  1. 创建应用
python manage.py startapp app_test
  • 创建应用后项目结构如下

3.3 修改项目配置

3.3.1 修改环境变量

  • 打开IDE(此处使用的是Pycharm)
  • 选择File/Settings,进入Project Interpreter,选择虚拟环境内的python版本
  • 如果选项内没有,就点击右侧的齿轮,选择Add Local,
    选择所在虚拟环境下的python版本,如/home/python/.virtualenvs/django_blog/bin/python2.7

3.3.2 创建模板文件夹、静态文件文件夹和应用urls

  • 在项目根目录分别创建statictemplates文件夹
  • static文件夹下创建jscssimg三个文件夹,以后用来存放静态文件
  • templates文件夹下创建app_test(应用名)文件夹,以后用来存放模板文件
  • 在应用文件夹下创建urls.py文件,以后用来存放应用的urls映射表
  • 创建完成之后的目录结构如下:

3.3.3 修改settings

  • 打开/project_test下的settings.py
  • 添加应用__在INSTALLED_APPS中将我们刚创建的应用加到最后面
  • 修改模板路径__在TEMPLATES里的DIRS修改为'DIRS': [BASE_DIR, 'templates'],
  • 修改静态文件路径__在最后添加
STATICFILES_DIRS = [
    os.path.join(BASE_DIR, 'static')
]

3.4 创建页面

3.4.1 修改项目urls

  • 打开/project_test下的urls.py,在urlpatterns内添加一行,意思是只要不是匹配到admin,都转到app_test应用
url(r'^', include('app_test.urls')),
  • 打开/app_test下的urls.py,添加以下内容:
#coding=utf-8
from django.conf.urls import  url
from . import views  # 从当前文件夹内引入views

urlpatterns = [
    url(r'^$', views.index),  # 匹配到根目录,就执行views文件内的index函数
]
  • 打开/project_test下的views.py,添加刚才urls.py内提到的index函数
#coding=utf-8
from django.shortcuts import render

# Create your views here.
def index(request):
    return render(request, 'app_test/index.html')
    # 对请求值不做任何处理,直接跳转到模板目录下app_test文件夹下的index.html页面
  • 将一张图片放在/static/img文件夹内
  • templates/app_test文件夹下,创建模板文件index.html,内容如下:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Index</title>
</head>
<body>
    <h1>下面有一张图片</h1>
    <img src="/static/img/test.jpg" alt="">  // 寻找static(settings里面的STATIC_URL)文件夹下img文件夹里的test.jpg图片
</body>
</html>

3.5 打开页面

  • 在项目根目录文件夹下,在终端内(确保已进入虚拟环境)
python manage.py runserver
  • 终端显示如下(红色字体暂不用管,因为我们并没有创建models):

  • 打开红框内显示的IP地址(127.0.0.1:8000)

  • 浏览器成功显示创建的页面

4 将项目上传至服务器(本机 & 服务器)

4.1 导出虚拟环境内的包(本机)

pip freeze > plist.txt
  • 此操作将虚拟环境内所有的包都保存在了list.txt里面

4.2 将项目文件夹整体上传至服务器

  • 传输文件可以用samba,ftp,scp等等,此处使用的是scp
scp -r <YOUR_LOCAL_PROJECT_DIR> <SERVER_USERNAME>@<SERVER_IP>:<YOUR_SERVER_PROJECT_DIR>

4.3 在服务器上安装虚拟环境(服务器)

  • 在服务器上重复2.1~2.3的步骤,安装虚拟环境
  • 进入虚拟环境,进入项目目录,根据本地计算机提供的包列表安装所需要的包
pip install -r plist.txt

5 安装uWSGI(服务器)

  • 安装Python开发版本(因为安装uWSGI过程中需要编译)
sudo apt-get install python-dev
  • 安装gcc(因为安装uWSGI过程中需要C编译器)
sudo apt-get install gcc
  • 安装uWSGI
pip install uwsgi
  • 使用uwsgi --version命令查看版本号,确认已正确安装

6 配置Django(服务器)

  • 配置项目settings,修改以下一项
ALLOWED_HOSTS = ['*', ]
  • 在项目根目录文件夹下,在终端内(确保已进入虚拟环境)
python manage.py runserver 0:8000
  • 在本地计算机浏览器中输入以下地址以测试Django在服务器上是否正常运行
<YOUR SERVER IP>:8000

2017.06.08更新
* 如果不能正常显示页面,一般为以下两个原因:

1.请检查防火墙状态,保证8000端口是能够被访问的,代码如下( 更多防火墙设置可以参考我这篇文章https://t.cn/RSuX8Qj

# 检查防火墙状态
sudo ufw status

# 可以临时关闭防火墙
sudo ufw disable

# 或者保持防火墙开启,允许8000端口连接
sudo ufw allow 8000

2.请检查服务器安全组规则,如阿里云服务器,可以在进入管理控制台后,按以下步骤设置( 如要了解更多服务器安全组规则设置,请参见阿里云官方文档https://t.cn/RST7Sgz

3.重启服务,再次在本地计算机浏览器中查看

  • 确定服务器正常后,打开settings,修改以下一项
DEBUG = False

7 配置uWSGI(服务器)

7.1 打通uWSGI和Python

  • 在项目根目录创建test.py文件,内容如下
def application(env, start_response):
    start_response('200 OK', [('Content-Type','text/html')])
    return ["Hello World"]  # python2
    # return [b"Hello World"]  # python3
  • 运行uWSGI(表示使用http协议,并使用8000端口,加载指定文件test.py)
uwsgi --http :8000 --wsgi-file test.py
  • 打开浏览器,输入
127.0.0.1:8000
  • 若显示’Hello World’则表示运行正常,说明以下三个环节是相通的
web client <-> uWSGI <-> Python

7.2 打通uWSGI和Django

  • 在项目根目录创建文件my_uwsgi.ini,并写入以下内容
[uwsgi]
# 使用nginx连接时使用
# socket = 0:8001

# 直接做web服务器使用
http = 0:8080

# 项目目录
chdir = /home/python/Desktop/project_test

# 项目中wsgi.py文件的目录
wsgi-file = /home/python/Desktop/project_test/project_test/wsgi.py

# 主进程
master = true

# 多进程&多线程
processes = 6
threads = 2

# .sock文件目录需与Nginx文件内的配置相同
# socket = /home/python/Desktop/project_test/my_sock.sock
# chmod-socket = 666

# 以守护进程的方式启动
vacuum = true


# 存储pid进程
pidfile=uwsgi.pid

# 存储log日志
daemonize=uwsgi.log
  • 启动uWSGI服务
uwsgi --ini my_uwsgi.ini
  • 终端显示以下内容即代表开启成功
[uWSGI] getting INI configuration from my_uwsgi.ini
  • 打开浏览器,地址栏输入以下地址
<YOUR_SERVER_IP>:8080
  • 可以看到,文字正常显示,图片无法显示,这是正常现象

  • 以上步骤说明以下三个环节是相通的

web client <-> uWSGI <-> Django
  • 停止uWSGI服务
uwsgi --stop uwsgi.pid

8 配置Nginx(服务器)

8.1 安装Nginx

  • 安装Nginx
sudo apt-get install nginx
  • Nginx安装成功后,系统会自动开启 Nginx 服务,默认使用80端口,打开浏览器并输入你服务器的IP地址,就可以看到 nginx 的测试页面
Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.
  • 说明以下两个环节是相通的
web client <-> the web server(Nginx)

8.2 配置Nginx

  • /etc/nginx/目录下的uwsgi_params复制到项目文件夹,对此文件不做任何改动
cp /etc/nginx/uwsgi_params .
  • 在项目根目录创建文件my_nginx.conf,并写入以下内容
upstream django {
    server    127.0.0.1:8001;
    # server      unix://home/python/Desktop/project_test/my_sock.sock;
}

server {
    listen      8000;  # 端口号
    server_name 127.0.0.1;  # 服务器 ip 或是域名
    charset     utf-8;  # 字符集

    # 最大上传限制
    # client_max_body_size 75M;

    location /media  {
        alias /home/python/Desktop/project_test/media_common;  # 媒体文件所在文件夹
    }

    location /static {
        alias /home/python/Desktop/project_test/static_common;  # 静态文件所在文件夹
    }


    # 将所有非媒体请求转到Django服务器上
    location / {
        uwsgi_pass      django;  # 最上方已定义
        # 将所有参数都转到uwsgi下
        include         /home/python/Desktop/project_test/uwsgi_params; # uwsgi_params的路径
    }
}

  • 这个配置文件表示将静态文件和媒体文件由Nginx处理,而其它的请求转入uWSGI处理

  • 与Nginx配置目录建立软链接

sudo ln -s /home/python/Desktop/project_test/my_nginx.conf /etc/nginx/sites-enabled/
  • 创建静态文件与媒体文件存放目录
sudo mkdir static_common
sudo mkdir media_common
  • 如果出现权限问题,将权限改下就好
chmod 777 static_common
chmod 777 media_common
  • 修改项目settings,在最后面添加
STATIC_ROOT = os.path.join(BASE_DIR, 'static_common')
MEDIA_ROOT = os.path.join(BASE_DIR, 'media_common')
  • 进入项目根目录,执行静态文件迁移命令
python manage.py collectstatic
  • 提示输入选项时选yes即可

  • 重启Nginx服务

sudo /etc/init.d/nginx restart

9 Nginx & uWSGI & Django(服务器)

9.1 测试Nginx

  • 在浏览器内输入<YOUR_SERVER_IP>:8000/static/admin/css/base.css,检查是否能正常显示这个css文件

  • 将一张测试图片test.jpg放入media_common文件夹中,在浏览器中输入<YOUR_SERVER_IP>:8000/media/test.jpg,如果出现403则将图片的权限改为666,成功显示图片

9.2 测试uWSGI

  • 回到项目根目录,输入以下命令
uwsgi --socket :8001 --wsgi-file test.py
  • 打开浏览器,地址栏输入<YOUR_SERVBER_IP>,看是否能正常显示’Hello World’

9.3 用UNIX socket取代TCP port

  • 修改my_nginx.conf最终版如下:
upstream django {
    # server    127.0.0.1:8001;
    server      unix:///home/python/Desktop/project_test/my_sock.sock;
}

server {
    listen      8000;  # 端口号
    server_name songmingyao.com;  # 服务器 ip 或是域名
    charset     utf-8;  # 字符集

    # 最大上传限制
    # client_max_body_size 75M;

    location /media  {
        alias /home/python/Desktop/project_test/media_common;  # 媒体文件所在文件夹
    }

    location /static {
        alias /home/python/Desktop/project_test/static_common;  # 静态文件所在文件夹
    }


    # 将所有非媒体请求转到Django服务器上
    location / {
        uwsgi_pass      django;  # 最上方已定义
        # 将所有参数都转到uwsgi下
        include         /home/python/Desktop/project_test/uwsgi_params; # uwsgi_params的路径
    }
}
  • 修改my_uwsgi.ini最终版如下
[uwsgi]
# 使用nginx连接时使用
# socket = 0:8001

# 直接做web服务器使用
# http = 0:8080

# 项目目录
chdir = /home/python/Desktop/project_test

# 项目中wsgi.py文件的目录
wsgi-file = /home/python/Desktop/project_test/project_test/wsgi.py

# 主进程
master = true

# 多进程&多线程
processes = 6
threads = 2

# .sock文件目录需与Nginx文件内的配置相同
socket = /home/python/Desktop/project_test/my_sock.sock
chmod-socket = 666

# 以守护进程的方式启动
vacuum = true

# 存储pid进程
pidfile=uwsgi.pid

# 存储log日志
daemonize=uwsgi.log
  • 重启Nginx和uWSGI
sudo /etc/init.d/nginx restart

uwsgi --stop uwsgi.pid
uwsgi --ini my_uwsgi.ini
  • 打开浏览器,地址栏输入网址<YOUR_SERVER_IP>:8000,查看图片和文字是否显示正常

  • 此时以下环节已全部打通

web client <-> web server(nginx) <-> the socket <-> uwsgi <-> Django

9.4 服务器开机自启

  • 修改/etc/rc.local,添加以下内容到exit 0之前
/usr/local/bin/uwsgi --ini /home/python/Desktop/project_test/my_uwsgi.ini

前段时间,因为做个人Django项目需要用到省市区选择器,网上找了些省市区的MySQL数据库,可惜要么太旧要么要收费,于是根据国家统计局于2017年3月发布的数据(https://www.stats.gov.cn/tjsj/tjbz/xzqhdm/201703/t20170310_1471429.html)做了一份。

除了在下文粘贴了一份外,还在Github上放了一份,大家需要可自取。

Github链接:https://github.com/shelmingsong/Share/blob/master/areainfo.sql

INSERT INTO `areainfo` VALUES ('110000', '北京市', NULL);
INSERT INTO `areainfo` VALUES ('110100', '市辖区', '110000');
INSERT INTO `areainfo` VALUES ('110101', '东城区', '110100');
INSERT INTO `areainfo` VALUES ('110102', '西城区', '110100');
INSERT INTO `areainfo` VALUES ('110105', '朝阳区', '110100');
INSERT INTO `areainfo` VALUES ('110106', '丰台区', '110100');
INSERT INTO `areainfo` VALUES ('110107', '石景山区', '110100');
INSERT INTO `areainfo` VALUES ('110108', '海淀区', '110100');
INSERT INTO `areainfo` VALUES ('110109', '门头沟区', '110100');
INSERT INTO `areainfo` VALUES ('110111', '房山区', '110100');
INSERT INTO `areainfo` VALUES ('110112', '通州区', '110100');
INSERT INTO `areainfo` VALUES ('110113', '顺义区', '110100');
INSERT INTO `areainfo` VALUES ('110114', '昌平区', '110100');
INSERT INTO `areainfo` VALUES ('110115', '大兴区', '110100');
INSERT INTO `areainfo` VALUES ('110116', '怀柔区', '110100');
INSERT INTO `areainfo` VALUES ('110117', '平谷区', '110100');
INSERT INTO `areainfo` VALUES ('110118', '密云区', '110100');
INSERT INTO `areainfo` VALUES ('110119', '延庆区', '110100');
INSERT INTO `areainfo` VALUES ('120000', '天津市', NULL);
INSERT INTO `areainfo` VALUES ('120100', '市辖区', '120000');
INSERT INTO `areainfo` VALUES ('120101', '和平区', '120100');
INSERT INTO `areainfo` VALUES ('120102', '河东区', '120100');
INSERT INTO `areainfo` VALUES ('120103', '河西区', '120100');
INSERT INTO `areainfo` VALUES ('120104', '南开区', '120100');
INSERT INTO `areainfo` VALUES ('120105', '河北区', '120100');
INSERT INTO `areainfo` VALUES ('120106', '红桥区', '120100');
INSERT INTO `areainfo` VALUES ('120110', '东丽区', '120100');
INSERT INTO `areainfo` VALUES ('120111', '西青区', '120100');
INSERT INTO `areainfo` VALUES ('120112', '津南区', '120100');
INSERT INTO `areainfo` VALUES ('120113', '北辰区', '120100');
INSERT INTO `areainfo` VALUES ('120114', '武清区', '120100');
INSERT INTO `areainfo` VALUES ('120115', '宝坻区', '120100');
INSERT INTO `areainfo` VALUES ('120116', '滨海新区', '120100');
INSERT INTO `areainfo` VALUES ('120117', '宁河区', '120100');
INSERT INTO `areainfo` VALUES ('120118', '静海区', '120100');
INSERT INTO `areainfo` VALUES ('120119', '蓟州区', '120100');
INSERT INTO `areainfo` VALUES ('130000', '河北省', NULL);
INSERT INTO `areainfo` VALUES ('130100', '石家庄市', '130000');
INSERT INTO `areainfo` VALUES ('130101', '市辖区', '130100');
INSERT INTO `areainfo` VALUES ('130102', '长安区', '130100');
INSERT INTO `areainfo` VALUES ('130104', '桥西区', '130100');
INSERT INTO `areainfo` VALUES ('130105', '新华区', '130100');
INSERT INTO `areainfo` VALUES ('130107', '井陉矿区', '130100');
INSERT INTO `areainfo` VALUES ('130108', '裕华区', '130100');
INSERT INTO `areainfo` VALUES ('130109', '藁城区', '130100');
INSERT INTO `areainfo` VALUES ('130110', '鹿泉区', '130100');
INSERT INTO `areainfo` VALUES ('130111', '栾城区', '130100');
INSERT INTO `areainfo` VALUES ('130121', '井陉县', '130100');
INSERT INTO `areainfo` VALUES ('130123', '正定县', '130100');
INSERT INTO `areainfo` VALUES ('130125', '行唐县', '130100');
INSERT INTO `areainfo` VALUES ('130126', '灵寿县', '130100');
INSERT INTO `areainfo` VALUES ('130127', '高邑县', '130100');
INSERT INTO `areainfo` VALUES ('130128', '深泽县', '130100');
INSERT INTO `areainfo` VALUES ('130129', '赞皇县', '130100');
INSERT INTO `areainfo` VALUES ('130130', '无极县', '130100');
INSERT INTO `areainfo` VALUES ('130131', '平山县', '130100');
INSERT INTO `areainfo` VALUES ('130132', '元氏县', '130100');
INSERT INTO `areainfo` VALUES ('130133', '赵县', '130100');
INSERT INTO `areainfo` VALUES ('130183', '晋州市', '130100');
INSERT INTO `areainfo` VALUES ('130184', '新乐市', '130100');
INSERT INTO `areainfo` VALUES ('130200', '唐山市', '130000');
INSERT INTO `areainfo` VALUES ('130201', '市辖区', '130200');
INSERT INTO `areainfo` VALUES ('130202', '路南区', '130200');
INSERT INTO `areainfo` VALUES ('130203', '路北区', '130200');
INSERT INTO `areainfo` VALUES ('130204', '古冶区', '130200');
INSERT INTO `areainfo` VALUES ('130205', '开平区', '130200');
INSERT INTO `areainfo` VALUES ('130207', '丰南区', '130200');
INSERT INTO `areainfo` VALUES ('130208', '丰润区', '130200');
INSERT INTO `areainfo` VALUES ('130209', '曹妃甸区', '130200');
INSERT INTO `areainfo` VALUES ('130223', '滦县', '130200');
INSERT INTO `areainfo` VALUES ('130224', '滦南县', '130200');
INSERT INTO `areainfo` VALUES ('130225', '乐亭县', '130200');
INSERT INTO `areainfo` VALUES ('130227', '迁西县', '130200');
INSERT INTO `areainfo` VALUES ('130229', '玉田县', '130200');
INSERT INTO `areainfo` VALUES ('130281', '遵化市', '130200');
INSERT INTO `areainfo` VALUES ('130283', '迁安市', '130200');
INSERT INTO `areainfo` VALUES ('130300', '秦皇岛市', '130000');
INSERT INTO `areainfo` VALUES ('130301', '市辖区', '130300');
INSERT INTO `areainfo` VALUES ('130302', '海港区', '130300');
INSERT INTO `areainfo` VALUES ('130303', '山海关区', '130300');
INSERT INTO `areainfo` VALUES ('130304', '北戴河区', '130300');
INSERT INTO `areainfo` VALUES ('130306', '抚宁区', '130300');
INSERT INTO `areainfo` VALUES ('130321', '青龙满族自治县', '130300');
INSERT INTO `areainfo` VALUES ('130322', '昌黎县', '130300');
INSERT INTO `areainfo` VALUES ('130324', '卢龙县', '130300');
INSERT INTO `areainfo` VALUES ('130400', '邯郸市', '130000');
INSERT INTO `areainfo` VALUES ('130401', '市辖区', '130400');
INSERT INTO `areainfo` VALUES ('130402', '邯山区', '130400');
INSERT INTO `areainfo` VALUES ('130403', '丛台区', '130400');
INSERT INTO `areainfo` VALUES ('130404', '复兴区', '130400');
INSERT INTO `areainfo` VALUES ('130406', '峰峰矿区', '130400');
INSERT INTO `areainfo` VALUES ('130421', '邯郸县', '130400');
INSERT INTO `areainfo` VALUES ('130423', '临漳县', '130400');
INSERT INTO `areainfo` VALUES ('130424', '成安县', '130400');
INSERT INTO `areainfo` VALUES ('130425', '大名县', '130400');
INSERT INTO `areainfo` VALUES ('130426', '涉县', '130400');
INSERT INTO `areainfo` VALUES ('130427', '磁县', '130400');
INSERT INTO `areainfo` VALUES ('130428', '肥乡县', '130400');
INSERT INTO `areainfo` VALUES ('130429', '永年县', '130400');
INSERT INTO `areainfo` VALUES ('130430', '邱县', '130400');
INSERT INTO `areainfo` VALUES ('130431', '鸡泽县', '130400');
INSERT INTO `areainfo` VALUES ('130432', '广平县', '130400');
INSERT INTO `areainfo` VALUES ('130433', '馆陶县', '130400');
INSERT INTO `areainfo` VALUES ('130434', '魏县', '130400');
INSERT INTO `areainfo` VALUES ('130435', '曲周县', '130400');
INSERT INTO `areainfo` VALUES ('130481', '武安市', '130400');
INSERT INTO `areainfo` VALUES ('130500', '邢台市', '130000');
INSERT INTO `areainfo` VALUES ('130501', '市辖区', '130500');
INSERT INTO `areainfo` VALUES ('130502', '桥东区', '130500');
INSERT INTO `areainfo` VALUES ('130503', '桥西区', '130500');
INSERT INTO `areainfo` VALUES ('130521', '邢台县', '130500');
INSERT INTO `areainfo` VALUES ('130522', '临城县', '130500');
INSERT INTO `areainfo` VALUES ('130523', '内丘县', '130500');
INSERT INTO `areainfo` VALUES ('130524', '柏乡县', '130500');
INSERT INTO `areainfo` VALUES ('130525', '隆尧县', '130500');
INSERT INTO `areainfo` VALUES ('130526', '任县', '130500');
INSERT INTO `areainfo` VALUES ('130527', '南和县', '130500');
INSERT INTO `areainfo` VALUES ('130528', '宁晋县', '130500');
INSERT INTO `areainfo` VALUES ('130529', '巨鹿县', '130500');
INSERT INTO `areainfo` VALUES ('130530', '新河县', '130500');
INSERT INTO `areainfo` VALUES ('130531', '广宗县', '130500');
INSERT INTO `areainfo` VALUES ('130532', '平乡县', '130500');
INSERT INTO `areainfo` VALUES ('130533', '威县', '130500');
INSERT INTO `areainfo` VALUES ('130534', '清河县', '130500');
INSERT INTO `areainfo` VALUES ('130535', '临西县', '130500');
INSERT INTO `areainfo` VALUES ('130581', '南宫市', '130500');
INSERT INTO `areainfo` VALUES ('130582', '沙河市', '130500');
INSERT INTO `areainfo` VALUES ('130600', '保定市', '130000');
INSERT INTO `areainfo` VALUES ('130601', '市辖区', '130600');
INSERT INTO `areainfo` VALUES ('130602', '竞秀区', '130600');
INSERT INTO `areainfo` VALUES ('130606', '莲池区', '130600');
INSERT INTO `areainfo` VALUES ('130607', '满城区', '130600');
INSERT INTO `areainfo` VALUES ('130608', '清苑区', '130600');
INSERT INTO `areainfo` VALUES ('130609', '徐水区', '130600');
INSERT INTO `areainfo` VALUES ('130623', '涞水县', '130600');
INSERT INTO `areainfo` VALUES ('130624', '阜平县', '130600');
INSERT INTO `areainfo` VALUES ('130626', '定兴县', '130600');
INSERT INTO `areainfo` VALUES ('130627', '唐县', '130600');
INSERT INTO `areainfo` VALUES ('130628', '高阳县', '130600');
INSERT INTO `areainfo` VALUES ('130629', '容城县', '130600');
INSERT INTO `areainfo` VALUES ('130630', '涞源县', '130600');
INSERT INTO `areainfo` VALUES ('130631', '望都县', '130600');
INSERT INTO `areainfo` VALUES ('130632', '安新县', '130600');
INSERT INTO `areainfo` VALUES ('130633', '易县', '130600');
INSERT INTO `areainfo` VALUES ('130634', '曲阳县', '130600');
INSERT INTO `areainfo` VALUES ('130635', '蠡县', '130600');
INSERT INTO `areainfo` VALUES ('130636', '顺平县', '130600');
INSERT INTO `areainfo` VALUES ('130637', '博野县', '130600');
INSERT INTO `areainfo` VALUES ('130638', '雄县', '130600');
INSERT INTO `areainfo` VALUES ('130681', '涿州市', '130600');
INSERT INTO `areainfo` VALUES ('130683', '安国市', '130600');
INSERT INTO `areainfo` VALUES ('130684', '高碑店市', '130600');
INSERT INTO `areainfo` VALUES ('130700', '张家口市', '130000');
INSERT INTO `areainfo` VALUES ('130701', '市辖区', '130700');
INSERT INTO `areainfo` VALUES ('130702', '桥东区', '130700');
INSERT INTO `areainfo` VALUES ('130703', '桥西区', '130700');
INSERT INTO `areainfo` VALUES ('130705', '宣化区', '130700');
INSERT INTO `areainfo` VALUES ('130706', '下花园区', '130700');
INSERT INTO `areainfo` VALUES ('130708', '万全区', '130700');
INSERT INTO `areainfo` VALUES ('130709', '崇礼区', '130700');
INSERT INTO `areainfo` VALUES ('130722', '张北县', '130700');
INSERT INTO `areainfo` VALUES ('130723', '康保县', '130700');
INSERT INTO `areainfo` VALUES ('130724', '沽源县', '130700');
INSERT INTO `areainfo` VALUES ('130725', '尚义县', '130700');
INSERT INTO `areainfo` VALUES ('130726', '蔚县', '130700');
INSERT INTO `areainfo` VALUES ('130727', '阳原县', '130700');
INSERT INTO `areainfo` VALUES ('130728', '怀安县', '130700');
INSERT INTO `areainfo` VALUES ('130730', '怀来县', '130700');
INSERT INTO `areainfo` VALUES ('130731', '涿鹿县', '130700');
INSERT INTO `areainfo` VALUES ('130732', '赤城县', '130700');
INSERT INTO `areainfo` VALUES ('130800', '承德市', '130000');
INSERT INTO `areainfo` VALUES ('130801', '市辖区', '130800');
INSERT INTO `areainfo` VALUES ('130802', '双桥区', '130800');
INSERT INTO `areainfo` VALUES ('130803', '双滦区', '130800');
INSERT INTO `areainfo` VALUES ('130804', '鹰手营子矿区', '130800');
INSERT INTO `areainfo` VALUES ('130821', '承德县', '130800');
INSERT INTO `areainfo` VALUES ('130822', '兴隆县', '130800');
INSERT INTO `areainfo` VALUES ('130823', '平泉县', '130800');
INSERT INTO `areainfo` VALUES ('130824', '滦平县', '130800');
INSERT INTO `areainfo` VALUES ('130825', '隆化县', '130800');
INSERT INTO `areainfo` VALUES ('130826', '丰宁满族自治县', '130800');
INSERT INTO `areainfo` VALUES ('130827', '宽城满族自治县', '130800');
INSERT INTO `areainfo` VALUES ('130828', '围场满族蒙古族自治县', '130800');
INSERT INTO `areainfo` VALUES ('130900', '沧州市', '130000');
INSERT INTO `areainfo` VALUES ('130901', '市辖区', '130900');
INSERT INTO `areainfo` VALUES ('130902', '新华区', '130900');
INSERT INTO `areainfo` VALUES ('130903', '运河区', '130900');
INSERT INTO `areainfo` VALUES ('130921', '沧县', '130900');
INSERT INTO `areainfo` VALUES ('130922', '青县', '130900');
INSERT INTO `areainfo` VALUES ('130923', '东光县', '130900');
INSERT INTO `areainfo` VALUES ('130924', '海兴县', '130900');
INSERT INTO `areainfo` VALUES ('130925', '盐山县', '130900');
INSERT INTO `areainfo` VALUES ('130926', '肃宁县', '130900');
INSERT INTO `areainfo` VALUES ('130927', '南皮县', '130900');
INSERT INTO `areainfo` VALUES ('130928', '吴桥县', '130900');
INSERT INTO `areainfo` VALUES ('130929', '献县', '130900');
INSERT INTO `areainfo` VALUES ('130930', '孟村回族自治县', '130900');
INSERT INTO `areainfo` VALUES ('130981', '泊头市', '130900');
INSERT INTO `areainfo` VALUES ('130982', '任丘市', '130900');
INSERT INTO `areainfo` VALUES ('130983', '黄骅市', '130900');
INSERT INTO `areainfo` VALUES ('130984', '河间市', '130900');
INSERT INTO `areainfo` VALUES ('131000', '廊坊市', '130000');
INSERT INTO `areainfo` VALUES ('131001', '市辖区', '131000');
INSERT INTO `areainfo` VALUES ('131002', '安次区', '131000');
INSERT INTO `areainfo` VALUES ('131003', '广阳区', '131000');
INSERT INTO `areainfo` VALUES ('131022', '固安县', '131000');
INSERT INTO `areainfo` VALUES ('131023', '永清县', '131000');
INSERT INTO `areainfo` VALUES ('131024', '香河县', '131000');
INSERT INTO `areainfo` VALUES ('131025', '大城县', '131000');
INSERT INTO `areainfo` VALUES ('131026', '文安县', '131000');
INSERT INTO `areainfo` VALUES ('131028', '大厂回族自治县', '131000');
INSERT INTO `areainfo` VALUES ('131081', '霸州市', '131000');
INSERT INTO `areainfo` VALUES ('131082', '三河市', '131000');
INSERT INTO `areainfo` VALUES ('131100', '衡水市', '130000');
INSERT INTO `areainfo` VALUES ('131101', '市辖区', '131100');
INSERT INTO `areainfo` VALUES ('131102', '桃城区', '131100');
INSERT INTO `areainfo` VALUES ('131103', '冀州区', '131100');
INSERT INTO `areainfo` VALUES ('131121', '枣强县', '131100');
INSERT INTO `areainfo` VALUES ('131122', '武邑县', '131100');
INSERT INTO `areainfo` VALUES ('131123', '武强县', '131100');
INSERT INTO `areainfo` VALUES ('131124', '饶阳县', '131100');
INSERT INTO `areainfo` VALUES ('131125', '安平县', '131100');
INSERT INTO `areainfo` VALUES ('131126', '故城县', '131100');
INSERT INTO `areainfo` VALUES ('131127', '景县', '131100');
INSERT INTO `areainfo` VALUES ('131128', '阜城县', '131100');
INSERT INTO `areainfo` VALUES ('131182', '深州市', '131100');
INSERT INTO `areainfo` VALUES ('139000', '省直辖县级行政区划', '130000');
INSERT INTO `areainfo` VALUES ('139001', '定州市', '139000');
INSERT INTO `areainfo` VALUES ('139002', '辛集市', '139000');
INSERT INTO `areainfo` VALUES ('140000', '山西省', NULL);
INSERT INTO `areainfo` VALUES ('140100', '太原市', '140000');
INSERT INTO `areainfo` VALUES ('140101', '市辖区', '140100');
INSERT INTO `areainfo` VALUES ('140105', '小店区', '140100');
INSERT INTO `areainfo` VALUES ('140106', '迎泽区', '140100');
INSERT INTO `areainfo` VALUES ('140107', '杏花岭区', '140100');
INSERT INTO `areainfo` VALUES ('140108', '尖草坪区', '140100');
INSERT INTO `areainfo` VALUES ('140109', '万柏林区', '140100');
INSERT INTO `areainfo` VALUES ('140110', '晋源区', '140100');
INSERT INTO `areainfo` VALUES ('140121', '清徐县', '140100');
INSERT INTO `areainfo` VALUES ('140122', '阳曲县', '140100');
INSERT INTO `areainfo` VALUES ('140123', '娄烦县', '140100');
INSERT INTO `areainfo` VALUES ('140181', '古交市', '140100');
INSERT INTO `areainfo` VALUES ('140200', '大同市', '140000');
INSERT INTO `areainfo` VALUES ('140201', '市辖区', '140200');
INSERT INTO `areainfo` VALUES ('140202', '城区', '140200');
INSERT INTO `areainfo` VALUES ('140203', '矿区', '140200');
INSERT INTO `areainfo` VALUES ('140211', '南郊区', '140200');
INSERT INTO `areainfo` VALUES ('140212', '新荣区', '140200');
INSERT INTO `areainfo` VALUES ('140221', '阳高县', '140200');
INSERT INTO `areainfo` VALUES ('140222', '天镇县', '140200');
INSERT INTO `areainfo` VALUES ('140223', '广灵县', '140200');
INSERT INTO `areainfo` VALUES ('140224', '灵丘县', '140200');
INSERT INTO `areainfo` VALUES ('140225', '浑源县', '140200');
INSERT INTO `areainfo` VALUES ('140226', '左云县', '140200');
INSERT INTO `areainfo` VALUES ('140227', '大同县', '140200');
INSERT INTO `areainfo` VALUES ('140300', '阳泉市', '140000');
INSERT INTO `areainfo` VALUES ('140301', '市辖区', '140300');
INSERT INTO `areainfo` VALUES ('140302', '城区', '140300');
INSERT INTO `areainfo` VALUES ('140303', '矿区', '140300');
INSERT INTO `areainfo` VALUES ('140311', '郊区', '140300');
INSERT INTO `areainfo` VALUES ('140321', '平定县', '140300');
INSERT INTO `areainfo` VALUES ('140322', '盂县', '140300');
INSERT INTO `areainfo` VALUES ('140400', '长治市', '140000');
INSERT INTO `areainfo` VALUES ('140401', '市辖区', '140400');
INSERT INTO `areainfo` VALUES ('140402', '城区', '140400');
INSERT INTO `areainfo` VALUES ('140411', '郊区', '140400');
INSERT INTO `areainfo` VALUES ('140421', '长治县', '140400');
INSERT INTO `areainfo` VALUES ('140423', '襄垣县', '140400');
INSERT INTO `areainfo` VALUES ('140424', '屯留县', '140400');
INSERT INTO `areainfo` VALUES ('140425', '平顺县', '140400');
INSERT INTO `areainfo` VALUES ('140426', '黎城县', '140400');
INSERT INTO `areainfo` VALUES ('140427', '壶关县', '140400');
INSERT INTO `areainfo` VALUES ('140428', '长子县', '140400');
INSERT INTO `areainfo` VALUES ('140429', '武乡县', '140400');
INSERT INTO `areainfo` VALUES ('140430', '沁县', '140400');
INSERT INTO `areainfo` VALUES ('140431', '沁源县', '140400');
INSERT INTO `areainfo` VALUES ('140481', '潞城市', '140400');
INSERT INTO `areainfo` VALUES ('140500', '晋城市', '140000');
INSERT INTO `areainfo` VALUES ('140501', '市辖区', '140500');
INSERT INTO `areainfo` VALUES ('140502', '城区', '140500');
INSERT INTO `areainfo` VALUES ('140521', '沁水县', '140500');
INSERT INTO `areainfo` VALUES ('140522', '阳城县', '140500');
INSERT INTO `areainfo` VALUES ('140524', '陵川县', '140500');
INSERT INTO `areainfo` VALUES ('140525', '泽州县', '140500');
INSERT INTO `areainfo` VALUES ('140581', '高平市', '140500');
INSERT INTO `areainfo` VALUES ('140600', '朔州市', '140000');
INSERT INTO `areainfo` VALUES ('140601', '市辖区', '140600');
INSERT INTO `areainfo` VALUES ('140602', '朔城区', '140600');
INSERT INTO `areainfo` VALUES ('140603', '平鲁区', '140600');
INSERT INTO `areainfo` VALUES ('140621', '山阴县', '140600');
INSERT INTO `areainfo` VALUES ('140622', '应县', '140600');
INSERT INTO `areainfo` VALUES ('140623', '右玉县', '140600');
INSERT INTO `areainfo` VALUES ('140624', '怀仁县', '140600');
INSERT INTO `areainfo` VALUES ('140700', '晋中市', '140000');
INSERT INTO `areainfo` VALUES ('140701', '市辖区', '140700');
INSERT INTO `areainfo` VALUES ('140702', '榆次区', '140700');
INSERT INTO `areainfo` VALUES ('140721', '榆社县', '140700');
INSERT INTO `areainfo` VALUES ('140722', '左权县', '140700');
INSERT INTO `areainfo` VALUES ('140723', '和顺县', '140700');
INSERT INTO `areainfo` VALUES ('140724', '昔阳县', '140700');
INSERT INTO `areainfo` VALUES ('140725', '寿阳县', '140700');
INSERT INTO `areainfo` VALUES ('140726', '太谷县', '140700');
INSERT INTO `areainfo` VALUES ('140727', '祁县', '140700');
INSERT INTO `areainfo` VALUES ('140728', '平遥县', '140700');
INSERT INTO `areainfo` VALUES ('140729', '灵石县', '140700');
INSERT INTO `areainfo` VALUES ('140781', '介休市', '140700');
INSERT INTO `areainfo` VALUES ('140800', '运城市', '140000');
INSERT INTO `areainfo` VALUES ('140801', '市辖区', '140800');
INSERT INTO `areainfo` VALUES ('140802', '盐湖区', '140800');
INSERT INTO `areainfo` VALUES ('140821', '临猗县', '140800');
INSERT INTO `areainfo` VALUES ('140822', '万荣县', '140800');
INSERT INTO `areainfo` VALUES ('140823', '闻喜县', '140800');
INSERT INTO `areainfo` VALUES ('140824', '稷山县', '140800');
INSERT INTO `areainfo` VALUES ('140825', '新绛县', '140800');
INSERT INTO `areainfo` VALUES ('140826', '绛县', '140800');
INSERT INTO `areainfo` VALUES ('140827', '垣曲县', '140800');
INSERT INTO `areainfo` VALUES ('140828', '夏县', '140800');
INSERT INTO `areainfo` VALUES ('140829', '平陆县', '140800');
INSERT INTO `areainfo` VALUES ('140830', '芮城县', '140800');
INSERT INTO `areainfo` VALUES ('140881', '永济市', '140800');
INSERT INTO `areainfo` VALUES ('140882', '河津市', '140800');
INSERT INTO `areainfo` VALUES ('140900', '忻州市', '140000');
INSERT INTO `areainfo` VALUES ('140901', '市辖区', '140900');
INSERT INTO `areainfo` VALUES ('140902', '忻府区', '140900');
INSERT INTO `areainfo` VALUES ('140921', '定襄县', '140900');
INSERT INTO `areainfo` VALUES ('140922', '五台县', '140900');
INSERT INTO `areainfo` VALUES ('140923', '代县', '140900');
INSERT INTO `areainfo` VALUES ('140924', '繁峙县', '140900');
INSERT INTO `areainfo` VALUES ('140925', '宁武县', '140900');
INSERT INTO `areainfo` VALUES ('140926', '静乐县', '140900');
INSERT INTO `areainfo` VALUES ('140927', '神池县', '140900');
INSERT INTO `areainfo` VALUES ('140928', '五寨县', '140900');
INSERT INTO `areainfo` VALUES ('140929', '岢岚县', '140900');
INSERT INTO `areainfo` VALUES ('140930', '河曲县', '140900');
INSERT INTO `areainfo` VALUES ('140931', '保德县', '140900');
INSERT INTO `areainfo` VALUES ('140932', '偏关县', '140900');
INSERT INTO `areainfo` VALUES ('140981', '原平市', '140900');
INSERT INTO `areainfo` VALUES ('141000', '临汾市', '140000');
INSERT INTO `areainfo` VALUES ('141001', '市辖区', '141000');
INSERT INTO `areainfo` VALUES ('141002', '尧都区', '141000');
INSERT INTO `areainfo` VALUES ('141021', '曲沃县', '141000');
INSERT INTO `areainfo` VALUES ('141022', '翼城县', '141000');
INSERT INTO `areainfo` VALUES ('141023', '襄汾县', '141000');
INSERT INTO `areainfo` VALUES ('141024', '洪洞县', '141000');
INSERT INTO `areainfo` VALUES ('141025', '古县', '141000');
INSERT INTO `areainfo` VALUES ('141026', '安泽县', '141000');
INSERT INTO `areainfo` VALUES ('141027', '浮山县', '141000');
INSERT INTO `areainfo` VALUES ('141028', '吉县', '141000');
INSERT INTO `areainfo` VALUES ('141029', '乡宁县', '141000');
INSERT INTO `areainfo` VALUES ('141030', '大宁县', '141000');
INSERT INTO `areainfo` VALUES ('141031', '隰县', '141000');
INSERT INTO `areainfo` VALUES ('141032', '永和县', '141000');
INSERT INTO `areainfo` VALUES ('141033', '蒲县', '141000');
INSERT INTO `areainfo` VALUES ('141034', '汾西县', '141000');
INSERT INTO `areainfo` VALUES ('141081', '侯马市', '141000');
INSERT INTO `areainfo` VALUES ('141082', '霍州市', '141000');
INSERT INTO `areainfo` VALUES ('141100', '吕梁市', '140000');
INSERT INTO `areainfo` VALUES ('141101', '市辖区', '141100');
INSERT INTO `areainfo` VALUES ('141102', '离石区', '141100');
INSERT INTO `areainfo` VALUES ('141121', '文水县', '141100');
INSERT INTO `areainfo` VALUES ('141122', '交城县', '141100');
INSERT INTO `areainfo` VALUES ('141123', '兴县', '141100');
INSERT INTO `areainfo` VALUES ('141124', '临县', '141100');
INSERT INTO `areainfo` VALUES ('141125', '柳林县', '141100');
INSERT INTO `areainfo` VALUES ('141126', '石楼县', '141100');
INSERT INTO `areainfo` VALUES ('141127', '岚县', '141100');
INSERT INTO `areainfo` VALUES ('141128', '方山县', '141100');
INSERT INTO `areainfo` VALUES ('141129', '中阳县', '141100');
INSERT INTO `areainfo` VALUES ('141130', '交口县', '141100');
INSERT INTO `areainfo` VALUES ('141181', '孝义市', '141100');
INSERT INTO `areainfo` VALUES ('141182', '汾阳市', '141100');
INSERT INTO `areainfo` VALUES ('150000', '内蒙古自治区', NULL);
INSERT INTO `areainfo` VALUES ('150100', '呼和浩特市', '150000');
INSERT INTO `areainfo` VALUES ('150101', '市辖区', '150100');
INSERT INTO `areainfo` VALUES ('150102', '新城区', '150100');
INSERT INTO `areainfo` VALUES ('150103', '回民区', '150100');
INSERT INTO `areainfo` VALUES ('150104', '玉泉区', '150100');
INSERT INTO `areainfo` VALUES ('150105', '赛罕区', '150100');
INSERT INTO `areainfo` VALUES ('150121', '土默特左旗', '150100');
INSERT INTO `areainfo` VALUES ('150122', '托克托县', '150100');
INSERT INTO `areainfo` VALUES ('150123', '和林格尔县', '150100');
INSERT INTO `areainfo` VALUES ('150124', '清水河县', '150100');
INSERT INTO `areainfo` VALUES ('150125', '武川县', '150100');
INSERT INTO `areainfo` VALUES ('150200', '包头市', '150000');
INSERT INTO `areainfo` VALUES ('150201', '市辖区', '150200');
INSERT INTO `areainfo` VALUES ('150202', '东河区', '150200');
INSERT INTO `areainfo` VALUES ('150203', '昆都仑区', '150200');
INSERT INTO `areainfo` VALUES ('150204', '青山区', '150200');
INSERT INTO `areainfo` VALUES ('150205', '石拐区', '150200');
INSERT INTO `areainfo` VALUES ('150206', '白云鄂博矿区', '150200');
INSERT INTO `areainfo` VALUES ('150207', '九原区', '150200');
INSERT INTO `areainfo` VALUES ('150221', '土默特右旗', '150200');
INSERT INTO `areainfo` VALUES ('150222', '固阳县', '150200');
INSERT INTO `areainfo` VALUES ('150223', '达尔罕茂明安联合旗', '150200');
INSERT INTO `areainfo` VALUES ('150300', '乌海市', '150000');
INSERT INTO `areainfo` VALUES ('150301', '市辖区', '150300');
INSERT INTO `areainfo` VALUES ('150302', '海勃湾区', '150300');
INSERT INTO `areainfo` VALUES ('150303', '海南区', '150300');
INSERT INTO `areainfo` VALUES ('150304', '乌达区', '150300');
INSERT INTO `areainfo` VALUES ('150400', '赤峰市', '150000');
INSERT INTO `areainfo` VALUES ('150401', '市辖区', '150400');
INSERT INTO `areainfo` VALUES ('150402', '红山区', '150400');
INSERT INTO `areainfo` VALUES ('150403', '元宝山区', '150400');
INSERT INTO `areainfo` VALUES ('150404', '松山区', '150400');
INSERT INTO `areainfo` VALUES ('150421', '阿鲁科尔沁旗', '150400');
INSERT INTO `areainfo` VALUES ('150422', '巴林左旗', '150400');
INSERT INTO `areainfo` VALUES ('150423', '巴林右旗', '150400');
INSERT INTO `areainfo` VALUES ('150424', '林西县', '150400');
INSERT INTO `areainfo` VALUES ('150425', '克什克腾旗', '150400');
INSERT INTO `areainfo` VALUES ('150426', '翁牛特旗', '150400');
INSERT INTO `areainfo` VALUES ('150428', '喀喇沁旗', '150400');
INSERT INTO `areainfo` VALUES ('150429', '宁城县', '150400');
INSERT INTO `areainfo` VALUES ('150430', '敖汉旗', '150400');
INSERT INTO `areainfo` VALUES ('150500', '通辽市', '150000');
INSERT INTO `areainfo` VALUES ('150501', '市辖区', '150500');
INSERT INTO `areainfo` VALUES ('150502', '科尔沁区', '150500');
INSERT INTO `areainfo` VALUES ('150521', '科尔沁左翼中旗', '150500');
INSERT INTO `areainfo` VALUES ('150522', '科尔沁左翼后旗', '150500');
INSERT INTO `areainfo` VALUES ('150523', '开鲁县', '150500');
INSERT INTO `areainfo` VALUES ('150524', '库伦旗', '150500');
INSERT INTO `areainfo` VALUES ('150525', '奈曼旗', '150500');
INSERT INTO `areainfo` VALUES ('150526', '扎鲁特旗', '150500');
INSERT INTO `areainfo` VALUES ('150581', '霍林郭勒市', '150500');
INSERT INTO `areainfo` VALUES ('150600', '鄂尔多斯市', '150000');
INSERT INTO `areainfo` VALUES ('150601', '市辖区', '150600');
INSERT INTO `areainfo` VALUES ('150602', '东胜区', '150600');
INSERT INTO `areainfo` VALUES ('150603', '康巴什区', '150600');
INSERT INTO `areainfo` VALUES ('150621', '达拉特旗', '150600');
INSERT INTO `areainfo` VALUES ('150622', '准格尔旗', '150600');
INSERT INTO `areainfo` VALUES ('150623', '鄂托克前旗', '150600');
INSERT INTO `areainfo` VALUES ('150624', '鄂托克旗', '150600');
INSERT INTO `areainfo` VALUES ('150625', '杭锦旗', '150600');
INSERT INTO `areainfo` VALUES ('150626', '乌审旗', '150600');
INSERT INTO `areainfo` VALUES ('150627', '伊金霍洛旗', '150600');
INSERT INTO `areainfo` VALUES ('150700', '呼伦贝尔市', '150000');
INSERT INTO `areainfo` VALUES ('150701', '市辖区', '150700');
INSERT INTO `areainfo` VALUES ('150702', '海拉尔区', '150700');
INSERT INTO `areainfo` VALUES ('150703', '扎赉诺尔区', '150700');
INSERT INTO `areainfo` VALUES ('150721', '阿荣旗', '150700');
INSERT INTO `areainfo` VALUES ('150722', '莫力达瓦达斡尔族自治旗', '150700');
INSERT INTO `areainfo` VALUES ('150723', '鄂伦春自治旗', '150700');
INSERT INTO `areainfo` VALUES ('150724', '鄂温克族自治旗', '150700');
INSERT INTO `areainfo` VALUES ('150725', '陈巴尔虎旗', '150700');
INSERT INTO `areainfo` VALUES ('150726', '新巴尔虎左旗', '150700');
INSERT INTO `areainfo` VALUES ('150727', '新巴尔虎右旗', '150700');
INSERT INTO `areainfo` VALUES ('150781', '满洲里市', '150700');
INSERT INTO `areainfo` VALUES ('150782', '牙克石市', '150700');
INSERT INTO `areainfo` VALUES ('150783', '扎兰屯市', '150700');
INSERT INTO `areainfo` VALUES ('150784', '额尔古纳市', '150700');
INSERT INTO `areainfo` VALUES ('150785', '根河市', '150700');
INSERT INTO `areainfo` VALUES ('150800', '巴彦淖尔市', '150000');
INSERT INTO `areainfo` VALUES ('150801', '市辖区', '150800');
INSERT INTO `areainfo` VALUES ('150802', '临河区', '150800');
INSERT INTO `areainfo` VALUES ('150821', '五原县', '150800');
INSERT INTO `areainfo` VALUES ('150822', '磴口县', '150800');
INSERT INTO `areainfo` VALUES ('150823', '乌拉特前旗', '150800');
INSERT INTO `areainfo` VALUES ('150824', '乌拉特中旗', '150800');
INSERT INTO `areainfo` VALUES ('150825', '乌拉特后旗', '150800');
INSERT INTO `areainfo` VALUES ('150826', '杭锦后旗', '150800');
INSERT INTO `areainfo` VALUES ('150900', '乌兰察布市', '150000');
INSERT INTO `areainfo` VALUES ('150901', '市辖区', '150900');
INSERT INTO `areainfo` VALUES ('150902', '集宁区', '150900');
INSERT INTO `areainfo` VALUES ('150921', '卓资县', '150900');
INSERT INTO `areainfo` VALUES ('150922', '化德县', '150900');
INSERT INTO `areainfo` VALUES ('150923', '商都县', '150900');
INSERT INTO `areainfo` VALUES ('150924', '兴和县', '150900');
INSERT INTO `areainfo` VALUES ('150925', '凉城县', '150900');
INSERT INTO `areainfo` VALUES ('150926', '察哈尔右翼前旗', '150900');
INSERT INTO `areainfo` VALUES ('150927', '察哈尔右翼中旗', '150900');
INSERT INTO `areainfo` VALUES ('150928', '察哈尔右翼后旗', '150900');
INSERT INTO `areainfo` VALUES ('150929', '四子王旗', '150900');
INSERT INTO `areainfo` VALUES ('150981', '丰镇市', '150900');
INSERT INTO `areainfo` VALUES ('152200', '兴安盟', '150000');
INSERT INTO `areainfo` VALUES ('152201', '乌兰浩特市', '152200');
INSERT INTO `areainfo` VALUES ('152202', '阿尔山市', '152200');
INSERT INTO `areainfo` VALUES ('152221', '科尔沁右翼前旗', '152200');
INSERT INTO `areainfo` VALUES ('152222', '科尔沁右翼中旗', '152200');
INSERT INTO `areainfo` VALUES ('152223', '扎赉特旗', '152200');
INSERT INTO `areainfo` VALUES ('152224', '突泉县', '152200');
INSERT INTO `areainfo` VALUES ('152500', '锡林郭勒盟', '150000');
INSERT INTO `areainfo` VALUES ('152501', '二连浩特市', '152500');
INSERT INTO `areainfo` VALUES ('152502', '锡林浩特市', '152500');
INSERT INTO `areainfo` VALUES ('152522', '阿巴嘎旗', '152500');
INSERT INTO `areainfo` VALUES ('152523', '苏尼特左旗', '152500');
INSERT INTO `areainfo` VALUES ('152524', '苏尼特右旗', '152500');
INSERT INTO `areainfo` VALUES ('152525', '东乌珠穆沁旗', '152500');
INSERT INTO `areainfo` VALUES ('152526', '西乌珠穆沁旗', '152500');
INSERT INTO `areainfo` VALUES ('152527', '太仆寺旗', '152500');
INSERT INTO `areainfo` VALUES ('152528', '镶黄旗', '152500');
INSERT INTO `areainfo` VALUES ('152529', '正镶白旗', '152500');
INSERT INTO `areainfo` VALUES ('152530', '正蓝旗', '152500');
INSERT INTO `areainfo` VALUES ('152531', '多伦县', '152500');
INSERT INTO `areainfo` VALUES ('152900', '阿拉善盟', '150000');
INSERT INTO `areainfo` VALUES ('152921', '阿拉善左旗', '152900');
INSERT INTO `areainfo` VALUES ('152922', '阿拉善右旗', '152900');
INSERT INTO `areainfo` VALUES ('152923', '额济纳旗', '152900');
INSERT INTO `areainfo` VALUES ('210000', '辽宁省', NULL);
INSERT INTO `areainfo` VALUES ('210100', '沈阳市', '210000');
INSERT INTO `areainfo` VALUES ('210101', '市辖区', '210100');
INSERT INTO `areainfo` VALUES ('210102', '和平区', '210100');
INSERT INTO `areainfo` VALUES ('210103', '沈河区', '210100');
INSERT INTO `areainfo` VALUES ('210104', '大东区', '210100');
INSERT INTO `areainfo` VALUES ('210105', '皇姑区', '210100');
INSERT INTO `areainfo` VALUES ('210106', '铁西区', '210100');
INSERT INTO `areainfo` VALUES ('210111', '苏家屯区', '210100');
INSERT INTO `areainfo` VALUES ('210112', '浑南区', '210100');
INSERT INTO `areainfo` VALUES ('210113', '沈北新区', '210100');
INSERT INTO `areainfo` VALUES ('210114', '于洪区', '210100');
INSERT INTO `areainfo` VALUES ('210115', '辽中区', '210100');
INSERT INTO `areainfo` VALUES ('210123', '康平县', '210100');
INSERT INTO `areainfo` VALUES ('210124', '法库县', '210100');
INSERT INTO `areainfo` VALUES ('210181', '新民市', '210100');
INSERT INTO `areainfo` VALUES ('210200', '大连市', '210000');
INSERT INTO `areainfo` VALUES ('210201', '市辖区', '210200');
INSERT INTO `areainfo` VALUES ('210202', '中山区', '210200');
INSERT INTO `areainfo` VALUES ('210203', '西岗区', '210200');
INSERT INTO `areainfo` VALUES ('210204', '沙河口区', '210200');
INSERT INTO `areainfo` VALUES ('210211', '甘井子区', '210200');
INSERT INTO `areainfo` VALUES ('210212', '旅顺口区', '210200');
INSERT INTO `areainfo` VALUES ('210213', '金州区', '210200');
INSERT INTO `areainfo` VALUES ('210214', '普兰店区', '210200');
INSERT INTO `areainfo` VALUES ('210224', '长海县', '210200');
INSERT INTO `areainfo` VALUES ('210281', '瓦房店市', '210200');
INSERT INTO `areainfo` VALUES ('210283', '庄河市', '210200');
INSERT INTO `areainfo` VALUES ('210300', '鞍山市', '210000');
INSERT INTO `areainfo` VALUES ('210301', '市辖区', '210300');
INSERT INTO `areainfo` VALUES ('210302', '铁东区', '210300');
INSERT INTO `areainfo` VALUES ('210303', '铁西区', '210300');
INSERT INTO `areainfo` VALUES ('210304', '立山区', '210300');
INSERT INTO `areainfo` VALUES ('210311', '千山区', '210300');
INSERT INTO `areainfo` VALUES ('210321', '台安县', '210300');
INSERT INTO `areainfo` VALUES ('210323', '岫岩满族自治县', '210300');
INSERT INTO `areainfo` VALUES ('210381', '海城市', '210300');
INSERT INTO `areainfo` VALUES ('210400', '抚顺市', '210000');
INSERT INTO `areainfo` VALUES ('210401', '市辖区', '210400');
INSERT INTO `areainfo` VALUES ('210402', '新抚区', '210400');
INSERT INTO `areainfo` VALUES ('210403', '东洲区', '210400');
INSERT INTO `areainfo` VALUES ('210404', '望花区', '210400');
INSERT INTO `areainfo` VALUES ('210411', '顺城区', '210400');
INSERT INTO `areainfo` VALUES ('210421', '抚顺县', '210400');
INSERT INTO `areainfo` VALUES ('210422', '新宾满族自治县', '210400');
INSERT INTO `areainfo` VALUES ('210423', '清原满族自治县', '210400');
INSERT INTO `areainfo` VALUES ('210500', '本溪市', '210000');
INSERT INTO `areainfo` VALUES ('210501', '市辖区', '210500');
INSERT INTO `areainfo` VALUES ('210502', '平山区', '210500');
INSERT INTO `areainfo` VALUES ('210503', '溪湖区', '210500');
INSERT INTO `areainfo` VALUES ('210504', '明山区', '210500');
INSERT INTO `areainfo` VALUES ('210505', '南芬区', '210500');
INSERT INTO `areainfo` VALUES ('210521', '本溪满族自治县', '210500');
INSERT INTO `areainfo` VALUES ('210522', '桓仁满族自治县', '210500');
INSERT INTO `areainfo` VALUES ('210600', '丹东市', '210000');
INSERT INTO `areainfo` VALUES ('210601', '市辖区', '210600');
INSERT INTO `areainfo` VALUES ('210602', '元宝区', '210600');
INSERT INTO `areainfo` VALUES ('210603', '振兴区', '210600');
INSERT INTO `areainfo` VALUES ('210604', '振安区', '210600');
INSERT INTO `areainfo` VALUES ('210624', '宽甸满族自治县', '210600');
INSERT INTO `areainfo` VALUES ('210681', '东港市', '210600');
INSERT INTO `areainfo` VALUES ('210682', '凤城市', '210600');
INSERT INTO `areainfo` VALUES ('210700', '锦州市', '210000');
INSERT INTO `areainfo` VALUES ('210701', '市辖区', '210700');
INSERT INTO `areainfo` VALUES ('210702', '古塔区', '210700');
INSERT INTO `areainfo` VALUES ('210703', '凌河区', '210700');
INSERT INTO `areainfo` VALUES ('210711', '太和区', '210700');
INSERT INTO `areainfo` VALUES ('210726', '黑山县', '210700');
INSERT INTO `areainfo` VALUES ('210727', '义县', '210700');
INSERT INTO `areainfo` VALUES ('210781', '凌海市', '210700');
INSERT INTO `areainfo` VALUES ('210782', '北镇市', '210700');
INSERT INTO `areainfo` VALUES ('210800', '营口市', '210000');
INSERT INTO `areainfo` VALUES ('210801', '市辖区', '210800');
INSERT INTO `areainfo` VALUES ('210802', '站前区', '210800');
INSERT INTO `areainfo` VALUES ('210803', '西市区', '210800');
INSERT INTO `areainfo` VALUES ('210804', '鲅鱼圈区', '210800');
INSERT INTO `areainfo` VALUES ('210811', '老边区', '210800');
INSERT INTO `areainfo` VALUES ('210881', '盖州市', '210800');
INSERT INTO `areainfo` VALUES ('210882', '大石桥市', '210800');
INSERT INTO `areainfo` VALUES ('210900', '阜新市', '210000');
INSERT INTO `areainfo` VALUES ('210901', '市辖区', '210900');
INSERT INTO `areainfo` VALUES ('210902', '海州区', '210900');
INSERT INTO `areainfo` VALUES ('210903', '新邱区', '210900');
INSERT INTO `areainfo` VALUES ('210904', '太平区', '210900');
INSERT INTO `areainfo` VALUES ('210905', '清河门区', '210900');
INSERT INTO `areainfo` VALUES ('210911', '细河区', '210900');
INSERT INTO `areainfo` VALUES ('210921', '阜新蒙古族自治县', '210900');
INSERT INTO `areainfo` VALUES ('210922', '彰武县', '210900');
INSERT INTO `areainfo` VALUES ('211000', '辽阳市', '210000');
INSERT INTO `areainfo` VALUES ('211001', '市辖区', '211000');
INSERT INTO `areainfo` VALUES ('211002', '白塔区', '211000');
INSERT INTO `areainfo` VALUES ('211003', '文圣区', '211000');
INSERT INTO `areainfo` VALUES ('211004', '宏伟区', '211000');
INSERT INTO `areainfo` VALUES ('211005', '弓长岭区', '211000');
INSERT INTO `areainfo` VALUES ('211011', '太子河区', '211000');
INSERT INTO `areainfo` VALUES ('211021', '辽阳县', '211000');
INSERT INTO `areainfo` VALUES ('211081', '灯塔市', '211000');
INSERT INTO `areainfo` VALUES ('211100', '盘锦市', '210000');
INSERT INTO `areainfo` VALUES ('211101', '市辖区', '211100');
INSERT INTO `areainfo` VALUES ('211102', '双台子区', '211100');
INSERT INTO `areainfo` VALUES ('211103', '兴隆台区', '211100');
INSERT INTO `areainfo` VALUES ('211104', '大洼区', '211100');
INSERT INTO `areainfo` VALUES ('211122', '盘山县', '211100');
INSERT INTO `areainfo` VALUES ('211200', '铁岭市', '210000');
INSERT INTO `areainfo` VALUES ('211201', '市辖区', '211200');
INSERT INTO `areainfo` VALUES ('211202', '银州区', '211200');
INSERT INTO `areainfo` VALUES ('211204', '清河区', '211200');
INSERT INTO `areainfo` VALUES ('211221', '铁岭县', '211200');
INSERT INTO `areainfo` VALUES ('211223', '西丰县', '211200');
INSERT INTO `areainfo` VALUES ('211224', '昌图县', '211200');
INSERT INTO `areainfo` VALUES ('211281', '调兵山市', '211200');
INSERT INTO `areainfo` VALUES ('211282', '开原市', '211200');
INSERT INTO `areainfo` VALUES ('211300', '朝阳市', '210000');
INSERT INTO `areainfo` VALUES ('211301', '市辖区', '211300');
INSERT INTO `areainfo` VALUES ('211302', '双塔区', '211300');
INSERT INTO `areainfo` VALUES ('211303', '龙城区', '211300');
INSERT INTO `areainfo` VALUES ('211321', '朝阳县', '211300');
INSERT INTO `areainfo` VALUES ('211322', '建平县', '211300');
INSERT INTO `areainfo` VALUES ('211324', '喀喇沁左翼蒙古族自治县', '211300');
INSERT INTO `areainfo` VALUES ('211381', '北票市', '211300');
INSERT INTO `areainfo` VALUES ('211382', '凌源市', '211300');
INSERT INTO `areainfo` VALUES ('211400', '葫芦岛市', '210000');
INSERT INTO `areainfo` VALUES ('211401', '市辖区', '211400');
INSERT INTO `areainfo` VALUES ('211402', '连山区', '211400');
INSERT INTO `areainfo` VALUES ('211403', '龙港区', '211400');
INSERT INTO `areainfo` VALUES ('211404', '南票区', '211400');
INSERT INTO `areainfo` VALUES ('211421', '绥中县', '211400');
INSERT INTO `areainfo` VALUES ('211422', '建昌县', '211400');
INSERT INTO `areainfo` VALUES ('211481', '兴城市', '211400');
INSERT INTO `areainfo` VALUES ('220000', '吉林省', NULL);
INSERT INTO `areainfo` VALUES ('220100', '长春市', '220000');
INSERT INTO `areainfo` VALUES ('220101', '市辖区', '220100');
INSERT INTO `areainfo` VALUES ('220102', '南关区', '220100');
INSERT INTO `areainfo` VALUES ('220103', '宽城区', '220100');
INSERT INTO `areainfo` VALUES ('220104', '朝阳区', '220100');
INSERT INTO `areainfo` VALUES ('220105', '二道区', '220100');
INSERT INTO `areainfo` VALUES ('220106', '绿园区', '220100');
INSERT INTO `areainfo` VALUES ('220112', '双阳区', '220100');
INSERT INTO `areainfo` VALUES ('220113', '九台区', '220100');
INSERT INTO `areainfo` VALUES ('220122', '农安县', '220100');
INSERT INTO `areainfo` VALUES ('220182', '榆树市', '220100');
INSERT INTO `areainfo` VALUES ('220183', '德惠市', '220100');
INSERT INTO `areainfo` VALUES ('220200', '吉林市', '220000');
INSERT INTO `areainfo` VALUES ('220201', '市辖区', '220200');
INSERT INTO `areainfo` VALUES ('220202', '昌邑区', '220200');
INSERT INTO `areainfo` VALUES ('220203', '龙潭区', '220200');
INSERT INTO `areainfo` VALUES ('220204', '船营区', '220200');
INSERT INTO `areainfo` VALUES ('220211', '丰满区', '220200');
INSERT INTO `areainfo` VALUES ('220221', '永吉县', '220200');
INSERT INTO `areainfo` VALUES ('220281', '蛟河市', '220200');
INSERT INTO `areainfo` VALUES ('220282', '桦甸市', '220200');
INSERT INTO `areainfo` VALUES ('220283', '舒兰市', '220200');
INSERT INTO `areainfo` VALUES ('220284', '磐石市', '220200');
INSERT INTO `areainfo` VALUES ('220300', '四平市', '220000');
INSERT INTO `areainfo` VALUES ('220301', '市辖区', '220300');
INSERT INTO `areainfo` VALUES ('220302', '铁西区', '220300');
INSERT INTO `areainfo` VALUES ('220303', '铁东区', '220300');
INSERT INTO `areainfo` VALUES ('220322', '梨树县', '220300');
INSERT INTO `areainfo` VALUES ('220323', '伊通满族自治县', '220300');
INSERT INTO `areainfo` VALUES ('220381', '公主岭市', '220300');
INSERT INTO `areainfo` VALUES ('220382', '双辽市', '220300');
INSERT INTO `areainfo` VALUES ('220400', '辽源市', '220000');
INSERT INTO `areainfo` VALUES ('220401', '市辖区', '220400');
INSERT INTO `areainfo` VALUES ('220402', '龙山区', '220400');
INSERT INTO `areainfo` VALUES ('220403', '西安区', '220400');
INSERT INTO `areainfo` VALUES ('220421', '东丰县', '220400');
INSERT INTO `areainfo` VALUES ('220422', '东辽县', '220400');
INSERT INTO `areainfo` VALUES ('220500', '通化市', '220000');
INSERT INTO `areainfo` VALUES ('220501', '市辖区', '220500');
INSERT INTO `areainfo` VALUES ('220502', '东昌区', '220500');
INSERT INTO `areainfo` VALUES ('220503', '二道江区', '220500');
INSERT INTO `areainfo` VALUES ('220521', '通化县', '220500');
INSERT INTO `areainfo` VALUES ('220523', '辉南县', '220500');
INSERT INTO `areainfo` VALUES ('220524', '柳河县', '220500');
INSERT INTO `areainfo` VALUES ('220581', '梅河口市', '220500');
INSERT INTO `areainfo` VALUES ('220582', '集安市', '220500');
INSERT INTO `areainfo` VALUES ('220600', '白山市', '220000');
INSERT INTO `areainfo` VALUES ('220601', '市辖区', '220600');
INSERT INTO `areainfo` VALUES ('220602', '浑江区', '220600');
INSERT INTO `areainfo` VALUES ('220605', '江源区', '220600');
INSERT INTO `areainfo` VALUES ('220621', '抚松县', '220600');
INSERT INTO `areainfo` VALUES ('220622', '靖宇县', '220600');
INSERT INTO `areainfo` VALUES ('220623', '长白朝鲜族自治县', '220600');
INSERT INTO `areainfo` VALUES ('220681', '临江市', '220600');
INSERT INTO `areainfo` VALUES ('220700', '松原市', '220000');
INSERT INTO `areainfo` VALUES ('220701', '市辖区', '220700');
INSERT INTO `areainfo` VALUES ('220702', '宁江区', '220700');
INSERT INTO `areainfo` VALUES ('220721', '前郭尔罗斯蒙古族自治县', '220700');
INSERT INTO `areainfo` VALUES ('220722', '长岭县', '220700');
INSERT INTO `areainfo` VALUES ('220723', '乾安县', '220700');
INSERT INTO `areainfo` VALUES ('220781', '扶余市', '220700');
INSERT INTO `areainfo` VALUES ('220800', '白城市', '220000');
INSERT INTO `areainfo` VALUES ('220801', '市辖区', '220800');
INSERT INTO `areainfo` VALUES ('220802', '洮北区', '220800');
INSERT INTO `areainfo` VALUES ('220821', '镇赉县', '220800');
INSERT INTO `areainfo` VALUES ('220822', '通榆县', '220800');
INSERT INTO `areainfo` VALUES ('220881', '洮南市', '220800');
INSERT INTO `areainfo` VALUES ('220882', '大安市', '220800');
INSERT INTO `areainfo` VALUES ('222400', '延边朝鲜族自治州', '220000');
INSERT INTO `areainfo` VALUES ('222401', '延吉市', '222400');
INSERT INTO `areainfo` VALUES ('222402', '图们市', '222400');
INSERT INTO `areainfo` VALUES ('222403', '敦化市', '222400');
INSERT INTO `areainfo` VALUES ('222404', '珲春市', '222400');
INSERT INTO `areainfo` VALUES ('222405', '龙井市', '222400');
INSERT INTO `areainfo` VALUES ('222406', '和龙市', '222400');
INSERT INTO `areainfo` VALUES ('222424', '汪清县', '222400');
INSERT INTO `areainfo` VALUES ('222426', '安图县', '222400');
INSERT INTO `areainfo` VALUES ('230000', '黑龙江省', NULL);
INSERT INTO `areainfo` VALUES ('230100', '哈尔滨市', '230000');
INSERT INTO `areainfo` VALUES ('230101', '市辖区', '230100');
INSERT INTO `areainfo` VALUES ('230102', '道里区', '230100');
INSERT INTO `areainfo` VALUES ('230103', '南岗区', '230100');
INSERT INTO `areainfo` VALUES ('230104', '道外区', '230100');
INSERT INTO `areainfo` VALUES ('230108', '平房区', '230100');
INSERT INTO `areainfo` VALUES ('230109', '松北区', '230100');
INSERT INTO `areainfo` VALUES ('230110', '香坊区', '230100');
INSERT INTO `areainfo` VALUES ('230111', '呼兰区', '230100');
INSERT INTO `areainfo` VALUES ('230112', '阿城区', '230100');
INSERT INTO `areainfo` VALUES ('230113', '双城区', '230100');
INSERT INTO `areainfo` VALUES ('230123', '依兰县', '230100');
INSERT INTO `areainfo` VALUES ('230124', '方正县', '230100');
INSERT INTO `areainfo` VALUES ('230125', '宾县', '230100');
INSERT INTO `areainfo` VALUES ('230126', '巴彦县', '230100');
INSERT INTO `areainfo` VALUES ('230127', '木兰县', '230100');
INSERT INTO `areainfo` VALUES ('230128', '通河县', '230100');
INSERT INTO `areainfo` VALUES ('230129', '延寿县', '230100');
INSERT INTO `areainfo` VALUES ('230183', '尚志市', '230100');
INSERT INTO `areainfo` VALUES ('230184', '五常市', '230100');
INSERT INTO `areainfo` VALUES ('230200', '齐齐哈尔市', '230000');
INSERT INTO `areainfo` VALUES ('230201', '市辖区', '230200');
INSERT INTO `areainfo` VALUES ('230202', '龙沙区', '230200');
INSERT INTO `areainfo` VALUES ('230203', '建华区', '230200');
INSERT INTO `areainfo` VALUES ('230204', '铁锋区', '230200');
INSERT INTO `areainfo` VALUES ('230205', '昂昂溪区', '230200');
INSERT INTO `areainfo` VALUES ('230206', '富拉尔基区', '230200');
INSERT INTO `areainfo` VALUES ('230207', '碾子山区', '230200');
INSERT INTO `areainfo` VALUES ('230208', '梅里斯达斡尔族区', '230200');
INSERT INTO `areainfo` VALUES ('230221', '龙江县', '230200');
INSERT INTO `areainfo` VALUES ('230223', '依安县', '230200');
INSERT INTO `areainfo` VALUES ('230224', '泰来县', '230200');
INSERT INTO `areainfo` VALUES ('230225', '甘南县', '230200');
INSERT INTO `areainfo` VALUES ('230227', '富裕县', '230200');
INSERT INTO `areainfo` VALUES ('230229', '克山县', '230200');
INSERT INTO `areainfo` VALUES ('230230', '克东县', '230200');
INSERT INTO `areainfo` VALUES ('230231', '拜泉县', '230200');
INSERT INTO `areainfo` VALUES ('230281', '讷河市', '230200');
INSERT INTO `areainfo` VALUES ('230300', '鸡西市', '230000');
INSERT INTO `areainfo` VALUES ('230301', '市辖区', '230300');
INSERT INTO `areainfo` VALUES ('230302', '鸡冠区', '230300');
INSERT INTO `areainfo` VALUES ('230303', '恒山区', '230300');
INSERT INTO `areainfo` VALUES ('230304', '滴道区', '230300');
INSERT INTO `areainfo` VALUES ('230305', '梨树区', '230300');
INSERT INTO `areainfo` VALUES ('230306', '城子河区', '230300');
INSERT INTO `areainfo` VALUES ('230307', '麻山区', '230300');
INSERT INTO `areainfo` VALUES ('230321', '鸡东县', '230300');
INSERT INTO `areainfo` VALUES ('230381', '虎林市', '230300');
INSERT INTO `areainfo` VALUES ('230382', '密山市', '230300');
INSERT INTO `areainfo` VALUES ('230400', '鹤岗市', '230000');
INSERT INTO `areainfo` VALUES ('230401', '市辖区', '230400');
INSERT INTO `areainfo` VALUES ('230402', '向阳区', '230400');
INSERT INTO `areainfo` VALUES ('230403', '工农区', '230400');
INSERT INTO `areainfo` VALUES ('230404', '南山区', '230400');
INSERT INTO `areainfo` VALUES ('230405', '兴安区', '230400');
INSERT INTO `areainfo` VALUES ('230406', '东山区', '230400');
INSERT INTO `areainfo` VALUES ('230407', '兴山区', '230400');
INSERT INTO `areainfo` VALUES ('230421', '萝北县', '230400');
INSERT INTO `areainfo` VALUES ('230422', '绥滨县', '230400');
INSERT INTO `areainfo` VALUES ('230500', '双鸭山市', '230000');
INSERT INTO `areainfo` VALUES ('230501', '市辖区', '230500');
INSERT INTO `areainfo` VALUES ('230502', '尖山区', '230500');
INSERT INTO `areainfo` VALUES ('230503', '岭东区', '230500');
INSERT INTO `areainfo` VALUES ('230505', '四方台区', '230500');
INSERT INTO `areainfo` VALUES ('230506', '宝山区', '230500');
INSERT INTO `areainfo` VALUES ('230521', '集贤县', '230500');
INSERT INTO `areainfo` VALUES ('230522', '友谊县', '230500');
INSERT INTO `areainfo` VALUES ('230523', '宝清县', '230500');
INSERT INTO `areainfo` VALUES ('230524', '饶河县', '230500');
INSERT INTO `areainfo` VALUES ('230600', '大庆市', '230000');
INSERT INTO `areainfo` VALUES ('230601', '市辖区', '230600');
INSERT INTO `areainfo` VALUES ('230602', '萨尔图区', '230600');
INSERT INTO `areainfo` VALUES ('230603', '龙凤区', '230600');
INSERT INTO `areainfo` VALUES ('230604', '让胡路区', '230600');
INSERT INTO `areainfo` VALUES ('230605', '红岗区', '230600');
INSERT INTO `areainfo` VALUES ('230606', '大同区', '230600');
INSERT INTO `areainfo` VALUES ('230621', '肇州县', '230600');
INSERT INTO `areainfo` VALUES ('230622', '肇源县', '230600');
INSERT INTO `areainfo` VALUES ('230623', '林甸县', '230600');
INSERT INTO `areainfo` VALUES ('230624', '杜尔伯特蒙古族自治县', '230600');
INSERT INTO `areainfo` VALUES ('230700', '伊春市', '230000');
INSERT INTO `areainfo` VALUES ('230701', '市辖区', '230700');
INSERT INTO `areainfo` VALUES ('230702', '伊春区', '230700');
INSERT INTO `areainfo` VALUES ('230703', '南岔区', '230700');
INSERT INTO `areainfo` VALUES ('230704', '友好区', '230700');
INSERT INTO `areainfo` VALUES ('230705', '西林区', '230700');
INSERT INTO `areainfo` VALUES ('230706', '翠峦区', '230700');
INSERT INTO `areainfo` VALUES ('230707', '新青区', '230700');
INSERT INTO `areainfo` VALUES ('230708', '美溪区', '230700');
INSERT INTO `areainfo` VALUES ('230709', '金山屯区', '230700');
INSERT INTO `areainfo` VALUES ('230710', '五营区', '230700');
INSERT INTO `areainfo` VALUES ('230711', '乌马河区', '230700');
INSERT INTO `areainfo` VALUES ('230712', '汤旺河区', '230700');
INSERT INTO `areainfo` VALUES ('230713', '带岭区', '230700');
INSERT INTO `areainfo` VALUES ('230714', '乌伊岭区', '230700');
INSERT INTO `areainfo` VALUES ('230715', '红星区', '230700');
INSERT INTO `areainfo` VALUES ('230716', '上甘岭区', '230700');
INSERT INTO `areainfo` VALUES ('230722', '嘉荫县', '230700');
INSERT INTO `areainfo` VALUES ('230781', '铁力市', '230700');
INSERT INTO `areainfo` VALUES ('230800', '佳木斯市', '230000');
INSERT INTO `areainfo` VALUES ('230801', '市辖区', '230800');
INSERT INTO `areainfo` VALUES ('230803', '向阳区', '230800');
INSERT INTO `areainfo` VALUES ('230804', '前进区', '230800');
INSERT INTO `areainfo` VALUES ('230805', '东风区', '230800');
INSERT INTO `areainfo` VALUES ('230811', '郊区', '230800');
INSERT INTO `areainfo` VALUES ('230822', '桦南县', '230800');
INSERT INTO `areainfo` VALUES ('230826', '桦川县', '230800');
INSERT INTO `areainfo` VALUES ('230828', '汤原县', '230800');
INSERT INTO `areainfo` VALUES ('230881', '同江市', '230800');
INSERT INTO `areainfo` VALUES ('230882', '富锦市', '230800');
INSERT INTO `areainfo` VALUES ('230883', '抚远市', '230800');
INSERT INTO `areainfo` VALUES ('230900', '七台河市', '230000');
INSERT INTO `areainfo` VALUES ('230901', '市辖区', '230900');
INSERT INTO `areainfo` VALUES ('230902', '新兴区', '230900');
INSERT INTO `areainfo` VALUES ('230903', '桃山区', '230900');
INSERT INTO `areainfo` VALUES ('230904', '茄子河区', '230900');
INSERT INTO `areainfo` VALUES ('230921', '勃利县', '230900');
INSERT INTO `areainfo` VALUES ('231000', '牡丹江市', '230000');
INSERT INTO `areainfo` VALUES ('231001', '市辖区', '231000');
INSERT INTO `areainfo` VALUES ('231002', '东安区', '231000');
INSERT INTO `areainfo` VALUES ('231003', '阳明区', '231000');
INSERT INTO `areainfo` VALUES ('231004', '爱民区', '231000');
INSERT INTO `areainfo` VALUES ('231005', '西安区', '231000');
INSERT INTO `areainfo` VALUES ('231025', '林口县', '231000');
INSERT INTO `areainfo` VALUES ('231081', '绥芬河市', '231000');
INSERT INTO `areainfo` VALUES ('231083', '海林市', '231000');
INSERT INTO `areainfo` VALUES ('231084', '宁安市', '231000');
INSERT INTO `areainfo` VALUES ('231085', '穆棱市', '231000');
INSERT INTO `areainfo` VALUES ('231086', '东宁市', '231000');
INSERT INTO `areainfo` VALUES ('231100', '黑河市', '230000');
INSERT INTO `areainfo` VALUES ('231101', '市辖区', '231100');
INSERT INTO `areainfo` VALUES ('231102', '爱辉区', '231100');
INSERT INTO `areainfo` VALUES ('231121', '嫩江县', '231100');
INSERT INTO `areainfo` VALUES ('231123', '逊克县', '231100');
INSERT INTO `areainfo` VALUES ('231124', '孙吴县', '231100');
INSERT INTO `areainfo` VALUES ('231181', '北安市', '231100');
INSERT INTO `areainfo` VALUES ('231182', '五大连池市', '231100');
INSERT INTO `areainfo` VALUES ('231200', '绥化市', '230000');
INSERT INTO `areainfo` VALUES ('231201', '市辖区', '231200');
INSERT INTO `areainfo` VALUES ('231202', '北林区', '231200');
INSERT INTO `areainfo` VALUES ('231221', '望奎县', '231200');
INSERT INTO `areainfo` VALUES ('231222', '兰西县', '231200');
INSERT INTO `areainfo` VALUES ('231223', '青冈县', '231200');
INSERT INTO `areainfo` VALUES ('231224', '庆安县', '231200');
INSERT INTO `areainfo` VALUES ('231225', '明水县', '231200');
INSERT INTO `areainfo` VALUES ('231226', '绥棱县', '231200');
INSERT INTO `areainfo` VALUES ('231281', '安达市', '231200');
INSERT INTO `areainfo` VALUES ('231282', '肇东市', '231200');
INSERT INTO `areainfo` VALUES ('231283', '海伦市', '231200');
INSERT INTO `areainfo` VALUES ('232700', '大兴安岭地区', '230000');
INSERT INTO `areainfo` VALUES ('232721', '呼玛县', '232700');
INSERT INTO `areainfo` VALUES ('232722', '塔河县', '232700');
INSERT INTO `areainfo` VALUES ('232723', '漠河县', '232700');
INSERT INTO `areainfo` VALUES ('310000', '上海市', NULL);
INSERT INTO `areainfo` VALUES ('310100', '市辖区', '310000');
INSERT INTO `areainfo` VALUES ('310101', '黄浦区', '310100');
INSERT INTO `areainfo` VALUES ('310104', '徐汇区', '310100');
INSERT INTO `areainfo` VALUES ('310105', '长宁区', '310100');
INSERT INTO `areainfo` VALUES ('310106', '静安区', '310100');
INSERT INTO `areainfo` VALUES ('310107', '普陀区', '310100');
INSERT INTO `areainfo` VALUES ('310109', '虹口区', '310100');
INSERT INTO `areainfo` VALUES ('310110', '杨浦区', '310100');
INSERT INTO `areainfo` VALUES ('310112', '闵行区', '310100');
INSERT INTO `areainfo` VALUES ('310113', '宝山区', '310100');
INSERT INTO `areainfo` VALUES ('310114', '嘉定区', '310100');
INSERT INTO `areainfo` VALUES ('310115', '浦东新区', '310100');
INSERT INTO `areainfo` VALUES ('310116', '金山区', '310100');
INSERT INTO `areainfo` VALUES ('310117', '松江区', '310100');
INSERT INTO `areainfo` VALUES ('310118', '青浦区', '310100');
INSERT INTO `areainfo` VALUES ('310120', '奉贤区', '310100');
INSERT INTO `areainfo` VALUES ('310151', '崇明区', '310100');
INSERT INTO `areainfo` VALUES ('320000', '江苏省', NULL);
INSERT INTO `areainfo` VALUES ('320100', '南京市', '320000');
INSERT INTO `areainfo` VALUES ('320101', '市辖区', '320100');
INSERT INTO `areainfo` VALUES ('320102', '玄武区', '320100');
INSERT INTO `areainfo` VALUES ('320104', '秦淮区', '320100');
INSERT INTO `areainfo` VALUES ('320105', '建邺区', '320100');
INSERT INTO `areainfo` VALUES ('320106', '鼓楼区', '320100');
INSERT INTO `areainfo` VALUES ('320111', '浦口区', '320100');
INSERT INTO `areainfo` VALUES ('320113', '栖霞区', '320100');
INSERT INTO `areainfo` VALUES ('320114', '雨花台区', '320100');
INSERT INTO `areainfo` VALUES ('320115', '江宁区', '320100');
INSERT INTO `areainfo` VALUES ('320116', '六合区', '320100');
INSERT INTO `areainfo` VALUES ('320117', '溧水区', '320100');
INSERT INTO `areainfo` VALUES ('320118', '高淳区', '320100');
INSERT INTO `areainfo` VALUES ('320200', '无锡市', '320000');
INSERT INTO `areainfo` VALUES ('320201', '市辖区', '320200');
INSERT INTO `areainfo` VALUES ('320205', '锡山区', '320200');
INSERT INTO `areainfo` VALUES ('320206', '惠山区', '320200');
INSERT INTO `areainfo` VALUES ('320211', '滨湖区', '320200');
INSERT INTO `areainfo` VALUES ('320213', '梁溪区', '320200');
INSERT INTO `areainfo` VALUES ('320214', '新吴区', '320200');
INSERT INTO `areainfo` VALUES ('320281', '江阴市', '320200');
INSERT INTO `areainfo` VALUES ('320282', '宜兴市', '320200');
INSERT INTO `areainfo` VALUES ('320300', '徐州市', '320000');
INSERT INTO `areainfo` VALUES ('320301', '市辖区', '320300');
INSERT INTO `areainfo` VALUES ('320302', '鼓楼区', '320300');
INSERT INTO `areainfo` VALUES ('320303', '云龙区', '320300');
INSERT INTO `areainfo` VALUES ('320305', '贾汪区', '320300');
INSERT INTO `areainfo` VALUES ('320311', '泉山区', '320300');
INSERT INTO `areainfo` VALUES ('320312', '铜山区', '320300');
INSERT INTO `areainfo` VALUES ('320321', '丰县', '320300');
INSERT INTO `areainfo` VALUES ('320322', '沛县', '320300');
INSERT INTO `areainfo` VALUES ('320324', '睢宁县', '320300');
INSERT INTO `areainfo` VALUES ('320381', '新沂市', '320300');
INSERT INTO `areainfo` VALUES ('320382', '邳州市', '320300');
INSERT INTO `areainfo` VALUES ('320400', '常州市', '320000');
INSERT INTO `areainfo` VALUES ('320401', '市辖区', '320400');
INSERT INTO `areainfo` VALUES ('320402', '天宁区', '320400');
INSERT INTO `areainfo` VALUES ('320404', '钟楼区', '320400');
INSERT INTO `areainfo` VALUES ('320411', '新北区', '320400');
INSERT INTO `areainfo` VALUES ('320412', '武进区', '320400');
INSERT INTO `areainfo` VALUES ('320413', '金坛区', '320400');
INSERT INTO `areainfo` VALUES ('320481', '溧阳市', '320400');
INSERT INTO `areainfo` VALUES ('320500', '苏州市', '320000');
INSERT INTO `areainfo` VALUES ('320501', '市辖区', '320500');
INSERT INTO `areainfo` VALUES ('320505', '虎丘区', '320500');
INSERT INTO `areainfo` VALUES ('320506', '吴中区', '320500');
INSERT INTO `areainfo` VALUES ('320507', '相城区', '320500');
INSERT INTO `areainfo` VALUES ('320508', '姑苏区', '320500');
INSERT INTO `areainfo` VALUES ('320509', '吴江区', '320500');
INSERT INTO `areainfo` VALUES ('320581', '常熟市', '320500');
INSERT INTO `areainfo` VALUES ('320582', '张家港市', '320500');
INSERT INTO `areainfo` VALUES ('320583', '昆山市', '320500');
INSERT INTO `areainfo` VALUES ('320585', '太仓市', '320500');
INSERT INTO `areainfo` VALUES ('320600', '南通市', '320000');
INSERT INTO `areainfo` VALUES ('320601', '市辖区', '320600');
INSERT INTO `areainfo` VALUES ('320602', '崇川区', '320600');
INSERT INTO `areainfo` VALUES ('320611', '港闸区', '320600');
INSERT INTO `areainfo` VALUES ('320612', '通州区', '320600');
INSERT INTO `areainfo` VALUES ('320621', '海安县', '320600');
INSERT INTO `areainfo` VALUES ('320623', '如东县', '320600');
INSERT INTO `areainfo` VALUES ('320681', '启东市', '320600');
INSERT INTO `areainfo` VALUES ('320682', '如皋市', '320600');
INSERT INTO `areainfo` VALUES ('320684', '海门市', '320600');
INSERT INTO `areainfo` VALUES ('320700', '连云港市', '320000');
INSERT INTO `areainfo` VALUES ('320701', '市辖区', '320700');
INSERT INTO `areainfo` VALUES ('320703', '连云区', '320700');
INSERT INTO `areainfo` VALUES ('320706', '海州区', '320700');
INSERT INTO `areainfo` VALUES ('320707', '赣榆区', '320700');
INSERT INTO `areainfo` VALUES ('320722', '东海县', '320700');
INSERT INTO `areainfo` VALUES ('320723', '灌云县', '320700');
INSERT INTO `areainfo` VALUES ('320724', '灌南县', '320700');
INSERT INTO `areainfo` VALUES ('320800', '淮安市', '320000');
INSERT INTO `areainfo` VALUES ('320801', '市辖区', '320800');
INSERT INTO `areainfo` VALUES ('320803', '淮安区', '320800');
INSERT INTO `areainfo` VALUES ('320804', '淮阴区', '320800');
INSERT INTO `areainfo` VALUES ('320812', '清江浦区', '320800');
INSERT INTO `areainfo` VALUES ('320813', '洪泽区', '320800');
INSERT INTO `areainfo` VALUES ('320826', '涟水县', '320800');
INSERT INTO `areainfo` VALUES ('320830', '盱眙县', '320800');
INSERT INTO `areainfo` VALUES ('320831', '金湖县', '320800');
INSERT INTO `areainfo` VALUES ('320900', '盐城市', '320000');
INSERT INTO `areainfo` VALUES ('320901', '市辖区', '320900');
INSERT INTO `areainfo` VALUES ('320902', '亭湖区', '320900');
INSERT INTO `areainfo` VALUES ('320903', '盐都区', '320900');
INSERT INTO `areainfo` VALUES ('320904', '大丰区', '320900');
INSERT INTO `areainfo` VALUES ('320921', '响水县', '320900');
INSERT INTO `areainfo` VALUES ('320922', '滨海县', '320900');
INSERT INTO `areainfo` VALUES ('320923', '阜宁县', '320900');
INSERT INTO `areainfo` VALUES ('320924', '射阳县', '320900');
INSERT INTO `areainfo` VALUES ('320925', '建湖县', '320900');
INSERT INTO `areainfo` VALUES ('320981', '东台市', '320900');
INSERT INTO `areainfo` VALUES ('321000', '扬州市', '320000');
INSERT INTO `areainfo` VALUES ('321001', '市辖区', '321000');
INSERT INTO `areainfo` VALUES ('321002', '广陵区', '321000');
INSERT INTO `areainfo` VALUES ('321003', '邗江区', '321000');
INSERT INTO `areainfo` VALUES ('321012', '江都区', '321000');
INSERT INTO `areainfo` VALUES ('321023', '宝应县', '321000');
INSERT INTO `areainfo` VALUES ('321081', '仪征市', '321000');
INSERT INTO `areainfo` VALUES ('321084', '高邮市', '321000');
INSERT INTO `areainfo` VALUES ('321100', '镇江市', '320000');
INSERT INTO `areainfo` VALUES ('321101', '市辖区', '321100');
INSERT INTO `areainfo` VALUES ('321102', '京口区', '321100');
INSERT INTO `areainfo` VALUES ('321111', '润州区', '321100');
INSERT INTO `areainfo` VALUES ('321112', '丹徒区', '321100');
INSERT INTO `areainfo` VALUES ('321181', '丹阳市', '321100');
INSERT INTO `areainfo` VALUES ('321182', '扬中市', '321100');
INSERT INTO `areainfo` VALUES ('321183', '句容市', '321100');
INSERT INTO `areainfo` VALUES ('321200', '泰州市', '320000');
INSERT INTO `areainfo` VALUES ('321201', '市辖区', '321200');
INSERT INTO `areainfo` VALUES ('321202', '海陵区', '321200');
INSERT INTO `areainfo` VALUES ('321203', '高港区', '321200');
INSERT INTO `areainfo` VALUES ('321204', '姜堰区', '321200');
INSERT INTO `areainfo` VALUES ('321281', '兴化市', '321200');
INSERT INTO `areainfo` VALUES ('321282', '靖江市', '321200');
INSERT INTO `areainfo` VALUES ('321283', '泰兴市', '321200');
INSERT INTO `areainfo` VALUES ('321300', '宿迁市', '320000');
INSERT INTO `areainfo` VALUES ('321301', '市辖区', '321300');
INSERT INTO `areainfo` VALUES ('321302', '宿城区', '321300');
INSERT INTO `areainfo` VALUES ('321311', '宿豫区', '321300');
INSERT INTO `areainfo` VALUES ('321322', '沭阳县', '321300');
INSERT INTO `areainfo` VALUES ('321323', '泗阳县', '321300');
INSERT INTO `areainfo` VALUES ('321324', '泗洪县', '321300');
INSERT INTO `areainfo` VALUES ('330000', '浙江省', NULL);
INSERT INTO `areainfo` VALUES ('330100', '杭州市', '330000');
INSERT INTO `areainfo` VALUES ('330101', '市辖区', '330100');
INSERT INTO `areainfo` VALUES ('330102', '上城区', '330100');
INSERT INTO `areainfo` VALUES ('330103', '下城区', '330100');
INSERT INTO `areainfo` VALUES ('330104', '江干区', '330100');
INSERT INTO `areainfo` VALUES ('330105', '拱墅区', '330100');
INSERT INTO `areainfo` VALUES ('330106', '西湖区', '330100');
INSERT INTO `areainfo` VALUES ('330108', '滨江区', '330100');
INSERT INTO `areainfo` VALUES ('330109', '萧山区', '330100');
INSERT INTO `areainfo` VALUES ('330110', '余杭区', '330100');
INSERT INTO `areainfo` VALUES ('330111', '富阳区', '330100');
INSERT INTO `areainfo` VALUES ('330122', '桐庐县', '330100');
INSERT INTO `areainfo` VALUES ('330127', '淳安县', '330100');
INSERT INTO `areainfo` VALUES ('330182', '建德市', '330100');
INSERT INTO `areainfo` VALUES ('330185', '临安市', '330100');
INSERT INTO `areainfo` VALUES ('330200', '宁波市', '330000');
INSERT INTO `areainfo` VALUES ('330201', '市辖区', '330200');
INSERT INTO `areainfo` VALUES ('330203', '海曙区', '330200');
INSERT INTO `areainfo` VALUES ('330204', '江东区', '330200');
INSERT INTO `areainfo` VALUES ('330205', '江北区', '330200');
INSERT INTO `areainfo` VALUES ('330206', '北仑区', '330200');
INSERT INTO `areainfo` VALUES ('330211', '镇海区', '330200');
INSERT INTO `areainfo` VALUES ('330212', '鄞州区', '330200');
INSERT INTO `areainfo` VALUES ('330225', '象山县', '330200');
INSERT INTO `areainfo` VALUES ('330226', '宁海县', '330200');
INSERT INTO `areainfo` VALUES ('330281', '余姚市', '330200');
INSERT INTO `areainfo` VALUES ('330282', '慈溪市', '330200');
INSERT INTO `areainfo` VALUES ('330283', '奉化市', '330200');
INSERT INTO `areainfo` VALUES ('330300', '温州市', '330000');
INSERT INTO `areainfo` VALUES ('330301', '市辖区', '330300');
INSERT INTO `areainfo` VALUES ('330302', '鹿城区', '330300');
INSERT INTO `areainfo` VALUES ('330303', '龙湾区', '330300');
INSERT INTO `areainfo` VALUES ('330304', '瓯海区', '330300');
INSERT INTO `areainfo` VALUES ('330305', '洞头区', '330300');
INSERT INTO `areainfo` VALUES ('330324', '永嘉县', '330300');
INSERT INTO `areainfo` VALUES ('330326', '平阳县', '330300');
INSERT INTO `areainfo` VALUES ('330327', '苍南县', '330300');
INSERT INTO `areainfo` VALUES ('330328', '文成县', '330300');
INSERT INTO `areainfo` VALUES ('330329', '泰顺县', '330300');
INSERT INTO `areainfo` VALUES ('330381', '瑞安市', '330300');
INSERT INTO `areainfo` VALUES ('330382', '乐清市', '330300');
INSERT INTO `areainfo` VALUES ('330400', '嘉兴市', '330000');
INSERT INTO `areainfo` VALUES ('330401', '市辖区', '330400');
INSERT INTO `areainfo` VALUES ('330402', '南湖区', '330400');
INSERT INTO `areainfo` VALUES ('330411', '秀洲区', '330400');
INSERT INTO `areainfo` VALUES ('330421', '嘉善县', '330400');
INSERT INTO `areainfo` VALUES ('330424', '海盐县', '330400');
INSERT INTO `areainfo` VALUES ('330481', '海宁市', '330400');
INSERT INTO `areainfo` VALUES ('330482', '平湖市', '330400');
INSERT INTO `areainfo` VALUES ('330483', '桐乡市', '330400');
INSERT INTO `areainfo` VALUES ('330500', '湖州市', '330000');
INSERT INTO `areainfo` VALUES ('330501', '市辖区', '330500');
INSERT INTO `areainfo` VALUES ('330502', '吴兴区', '330500');
INSERT INTO `areainfo` VALUES ('330503', '南浔区', '330500');
INSERT INTO `areainfo` VALUES ('330521', '德清县', '330500');
INSERT INTO `areainfo` VALUES ('330522', '长兴县', '330500');
INSERT INTO `areainfo` VALUES ('330523', '安吉县', '330500');
INSERT INTO `areainfo` VALUES ('330600', '绍兴市', '330000');
INSERT INTO `areainfo` VALUES ('330601', '市辖区', '330600');
INSERT INTO `areainfo` VALUES ('330602', '越城区', '330600');
INSERT INTO `areainfo` VALUES ('330603', '柯桥区', '330600');
INSERT INTO `areainfo` VALUES ('330604', '上虞区', '330600');
INSERT INTO `areainfo` VALUES ('330624', '新昌县', '330600');
INSERT INTO `areainfo` VALUES ('330681', '诸暨市', '330600');
INSERT INTO `areainfo` VALUES ('330683', '嵊州市', '330600');
INSERT INTO `areainfo` VALUES ('330700', '金华市', '330000');
INSERT INTO `areainfo` VALUES ('330701', '市辖区', '330700');
INSERT INTO `areainfo` VALUES ('330702', '婺城区', '330700');
INSERT INTO `areainfo` VALUES ('330703', '金东区', '330700');
INSERT INTO `areainfo` VALUES ('330723', '武义县', '330700');
INSERT INTO `areainfo` VALUES ('330726', '浦江县', '330700');
INSERT INTO `areainfo` VALUES ('330727', '磐安县', '330700');
INSERT INTO `areainfo` VALUES ('330781', '兰溪市', '330700');
INSERT INTO `areainfo` VALUES ('330782', '义乌市', '330700');
INSERT INTO `areainfo` VALUES ('330783', '东阳市', '330700');
INSERT INTO `areainfo` VALUES ('330784', '永康市', '330700');
INSERT INTO `areainfo` VALUES ('330800', '衢州市', '330000');
INSERT INTO `areainfo` VALUES ('330801', '市辖区', '330800');
INSERT INTO `areainfo` VALUES ('330802', '柯城区', '330800');
INSERT INTO `areainfo` VALUES ('330803', '衢江区', '330800');
INSERT INTO `areainfo` VALUES ('330822', '常山县', '330800');
INSERT INTO `areainfo` VALUES ('330824', '开化县', '330800');
INSERT INTO `areainfo` VALUES ('330825', '龙游县', '330800');
INSERT INTO `areainfo` VALUES ('330881', '江山市', '330800');
INSERT INTO `areainfo` VALUES ('330900', '舟山市', '330000');
INSERT INTO `areainfo` VALUES ('330901', '市辖区', '330900');
INSERT INTO `areainfo` VALUES ('330902', '定海区', '330900');
INSERT INTO `areainfo` VALUES ('330903', '普陀区', '330900');
INSERT INTO `areainfo` VALUES ('330921', '岱山县', '330900');
INSERT INTO `areainfo` VALUES ('330922', '嵊泗县', '330900');
INSERT INTO `areainfo` VALUES ('331000', '台州市', '330000');
INSERT INTO `areainfo` VALUES ('331001', '市辖区', '331000');
INSERT INTO `areainfo` VALUES ('331002', '椒江区', '331000');
INSERT INTO `areainfo` VALUES ('331003', '黄岩区', '331000');
INSERT INTO `areainfo` VALUES ('331004', '路桥区', '331000');
INSERT INTO `areainfo` VALUES ('331021', '玉环县', '331000');
INSERT INTO `areainfo` VALUES ('331022', '三门县', '331000');
INSERT INTO `areainfo` VALUES ('331023', '天台县', '331000');
INSERT INTO `areainfo` VALUES ('331024', '仙居县', '331000');
INSERT INTO `areainfo` VALUES ('331081', '温岭市', '331000');
INSERT INTO `areainfo` VALUES ('331082', '临海市', '331000');
INSERT INTO `areainfo` VALUES ('331100', '丽水市', '330000');
INSERT INTO `areainfo` VALUES ('331101', '市辖区', '331100');
INSERT INTO `areainfo` VALUES ('331102', '莲都区', '331100');
INSERT INTO `areainfo` VALUES ('331121', '青田县', '331100');
INSERT INTO `areainfo` VALUES ('331122', '缙云县', '331100');
INSERT INTO `areainfo` VALUES ('331123', '遂昌县', '331100');
INSERT INTO `areainfo` VALUES ('331124', '松阳县', '331100');
INSERT INTO `areainfo` VALUES ('331125', '云和县', '331100');
INSERT INTO `areainfo` VALUES ('331126', '庆元县', '331100');
INSERT INTO `areainfo` VALUES ('331127', '景宁畲族自治县', '331100');
INSERT INTO `areainfo` VALUES ('331181', '龙泉市', '331100');
INSERT INTO `areainfo` VALUES ('340000', '安徽省', NULL);
INSERT INTO `areainfo` VALUES ('340100', '合肥市', '340000');
INSERT INTO `areainfo` VALUES ('340101', '市辖区', '340100');
INSERT INTO `areainfo` VALUES ('340102', '瑶海区', '340100');
INSERT INTO `areainfo` VALUES ('340103', '庐阳区', '340100');
INSERT INTO `areainfo` VALUES ('340104', '蜀山区', '340100');
INSERT INTO `areainfo` VALUES ('340111', '包河区', '340100');
INSERT INTO `areainfo` VALUES ('340121', '长丰县', '340100');
INSERT INTO `areainfo` VALUES ('340122', '肥东县', '340100');
INSERT INTO `areainfo` VALUES ('340123', '肥西县', '340100');
INSERT INTO `areainfo` VALUES ('340124', '庐江县', '340100');
INSERT INTO `areainfo` VALUES ('340181', '巢湖市', '340100');
INSERT INTO `areainfo` VALUES ('340200', '芜湖市', '340000');
INSERT INTO `areainfo` VALUES ('340201', '市辖区', '340200');
INSERT INTO `areainfo` VALUES ('340202', '镜湖区', '340200');
INSERT INTO `areainfo` VALUES ('340203', '弋江区', '340200');
INSERT INTO `areainfo` VALUES ('340207', '鸠江区', '340200');
INSERT INTO `areainfo` VALUES ('340208', '三山区', '340200');
INSERT INTO `areainfo` VALUES ('340221', '芜湖县', '340200');
INSERT INTO `areainfo` VALUES ('340222', '繁昌县', '340200');
INSERT INTO `areainfo` VALUES ('340223', '南陵县', '340200');
INSERT INTO `areainfo` VALUES ('340225', '无为县', '340200');
INSERT INTO `areainfo` VALUES ('340300', '蚌埠市', '340000');
INSERT INTO `areainfo` VALUES ('340301', '市辖区', '340300');
INSERT INTO `areainfo` VALUES ('340302', '龙子湖区', '340300');
INSERT INTO `areainfo` VALUES ('340303', '蚌山区', '340300');
INSERT INTO `areainfo` VALUES ('340304', '禹会区', '340300');
INSERT INTO `areainfo` VALUES ('340311', '淮上区', '340300');
INSERT INTO `areainfo` VALUES ('340321', '怀远县', '340300');
INSERT INTO `areainfo` VALUES ('340322', '五河县', '340300');
INSERT INTO `areainfo` VALUES ('340323', '固镇县', '340300');
INSERT INTO `areainfo` VALUES ('340400', '淮南市', '340000');
INSERT INTO `areainfo` VALUES ('340401', '市辖区', '340400');
INSERT INTO `areainfo` VALUES ('340402', '大通区', '340400');
INSERT INTO `areainfo` VALUES ('340403', '田家庵区', '340400');
INSERT INTO `areainfo` VALUES ('340404', '谢家集区', '340400');
INSERT INTO `areainfo` VALUES ('340405', '八公山区', '340400');
INSERT INTO `areainfo` VALUES ('340406', '潘集区', '340400');
INSERT INTO `areainfo` VALUES ('340421', '凤台县', '340400');
INSERT INTO `areainfo` VALUES ('340422', '寿县', '340400');
INSERT INTO `areainfo` VALUES ('340500', '马鞍山市', '340000');
INSERT INTO `areainfo` VALUES ('340501', '市辖区', '340500');
INSERT INTO `areainfo` VALUES ('340503', '花山区', '340500');
INSERT INTO `areainfo` VALUES ('340504', '雨山区', '340500');
INSERT INTO `areainfo` VALUES ('340506', '博望区', '340500');
INSERT INTO `areainfo` VALUES ('340521', '当涂县', '340500');
INSERT INTO `areainfo` VALUES ('340522', '含山县', '340500');
INSERT INTO `areainfo` VALUES ('340523', '和县', '340500');
INSERT INTO `areainfo` VALUES ('340600', '淮北市', '340000');
INSERT INTO `areainfo` VALUES ('340601', '市辖区', '340600');
INSERT INTO `areainfo` VALUES ('340602', '杜集区', '340600');
INSERT INTO `areainfo` VALUES ('340603', '相山区', '340600');
INSERT INTO `areainfo` VALUES ('340604', '烈山区', '340600');
INSERT INTO `areainfo` VALUES ('340621', '濉溪县', '340600');
INSERT INTO `areainfo` VALUES ('340700', '铜陵市', '340000');
INSERT INTO `areainfo` VALUES ('340701', '市辖区', '340700');
INSERT INTO `areainfo` VALUES ('340705', '铜官区', '340700');
INSERT INTO `areainfo` VALUES ('340706', '义安区', '340700');
INSERT INTO `areainfo` VALUES ('340711', '郊区', '340700');
INSERT INTO `areainfo` VALUES ('340722', '枞阳县', '340700');
INSERT INTO `areainfo` VALUES ('340800', '安庆市', '340000');
INSERT INTO `areainfo` VALUES ('340801', '市辖区', '340800');
INSERT INTO `areainfo` VALUES ('340802', '迎江区', '340800');
INSERT INTO `areainfo` VALUES ('340803', '大观区', '340800');
INSERT INTO `areainfo` VALUES ('340811', '宜秀区', '340800');
INSERT INTO `areainfo` VALUES ('340822', '怀宁县', '340800');
INSERT INTO `areainfo` VALUES ('340824', '潜山县', '340800');
INSERT INTO `areainfo` VALUES ('340825', '太湖县', '340800');
INSERT INTO `areainfo` VALUES ('340826', '宿松县', '340800');
INSERT INTO `areainfo` VALUES ('340827', '望江县', '340800');
INSERT INTO `areainfo` VALUES ('340828', '岳西县', '340800');
INSERT INTO `areainfo` VALUES ('340881', '桐城市', '340800');
INSERT INTO `areainfo` VALUES ('341000', '黄山市', '340000');
INSERT INTO `areainfo` VALUES ('341001', '市辖区', '341000');
INSERT INTO `areainfo` VALUES ('341002', '屯溪区', '341000');
INSERT INTO `areainfo` VALUES ('341003', '黄山区', '341000');
INSERT INTO `areainfo` VALUES ('341004', '徽州区', '341000');
INSERT INTO `areainfo` VALUES ('341021', '歙县', '341000');
INSERT INTO `areainfo` VALUES ('341022', '休宁县', '341000');
INSERT INTO `areainfo` VALUES ('341023', '黟县', '341000');
INSERT INTO `areainfo` VALUES ('341024', '祁门县', '341000');
INSERT INTO `areainfo` VALUES ('341100', '滁州市', '340000');
INSERT INTO `areainfo` VALUES ('341101', '市辖区', '341100');
INSERT INTO `areainfo` VALUES ('341102', '琅琊区', '341100');
INSERT INTO `areainfo` VALUES ('341103', '南谯区', '341100');
INSERT INTO `areainfo` VALUES ('341122', '来安县', '341100');
INSERT INTO `areainfo` VALUES ('341124', '全椒县', '341100');
INSERT INTO `areainfo` VALUES ('341125', '定远县', '341100');
INSERT INTO `areainfo` VALUES ('341126', '凤阳县', '341100');
INSERT INTO `areainfo` VALUES ('341181', '天长市', '341100');
INSERT INTO `areainfo` VALUES ('341182', '明光市', '341100');
INSERT INTO `areainfo` VALUES ('341200', '阜阳市', '340000');
INSERT INTO `areainfo` VALUES ('341201', '市辖区', '341200');
INSERT INTO `areainfo` VALUES ('341202', '颍州区', '341200');
INSERT INTO `areainfo` VALUES ('341203', '颍东区', '341200');
INSERT INTO `areainfo` VALUES ('341204', '颍泉区', '341200');
INSERT INTO `areainfo` VALUES ('341221', '临泉县', '341200');
INSERT INTO `areainfo` VALUES ('341222', '太和县', '341200');
INSERT INTO `areainfo` VALUES ('341225', '阜南县', '341200');
INSERT INTO `areainfo` VALUES ('341226', '颍上县', '341200');
INSERT INTO `areainfo` VALUES ('341282', '界首市', '341200');
INSERT INTO `areainfo` VALUES ('341300', '宿州市', '340000');
INSERT INTO `areainfo` VALUES ('341301', '市辖区', '341300');
INSERT INTO `areainfo` VALUES ('341302', '埇桥区', '341300');
INSERT INTO `areainfo` VALUES ('341321', '砀山县', '341300');
INSERT INTO `areainfo` VALUES ('341322', '萧县', '341300');
INSERT INTO `areainfo` VALUES ('341323', '灵璧县', '341300');
INSERT INTO `areainfo` VALUES ('341324', '泗县', '341300');
INSERT INTO `areainfo` VALUES ('341500', '六安市', '340000');
INSERT INTO `areainfo` VALUES ('341501', '市辖区', '341500');
INSERT INTO `areainfo` VALUES ('341502', '金安区', '341500');
INSERT INTO `areainfo` VALUES ('341503', '裕安区', '341500');
INSERT INTO `areainfo` VALUES ('341504', '叶集区', '341500');
INSERT INTO `areainfo` VALUES ('341522', '霍邱县', '341500');
INSERT INTO `areainfo` VALUES ('341523', '舒城县', '341500');
INSERT INTO `areainfo` VALUES ('341524', '金寨县', '341500');
INSERT INTO `areainfo` VALUES ('341525', '霍山县', '341500');
INSERT INTO `areainfo` VALUES ('341600', '亳州市', '340000');
INSERT INTO `areainfo` VALUES ('341601', '市辖区', '341600');
INSERT INTO `areainfo` VALUES ('341602', '谯城区', '341600');
INSERT INTO `areainfo` VALUES ('341621', '涡阳县', '341600');
INSERT INTO `areainfo` VALUES ('341622', '蒙城县', '341600');
INSERT INTO `areainfo` VALUES ('341623', '利辛县', '341600');
INSERT INTO `areainfo` VALUES ('341700', '池州市', '340000');
INSERT INTO `areainfo` VALUES ('341701', '市辖区', '341700');
INSERT INTO `areainfo` VALUES ('341702', '贵池区', '341700');
INSERT INTO `areainfo` VALUES ('341721', '东至县', '341700');
INSERT INTO `areainfo` VALUES ('341722', '石台县', '341700');
INSERT INTO `areainfo` VALUES ('341723', '青阳县', '341700');
INSERT INTO `areainfo` VALUES ('341800', '宣城市', '340000');
INSERT INTO `areainfo` VALUES ('341801', '市辖区', '341800');
INSERT INTO `areainfo` VALUES ('341802', '宣州区', '341800');
INSERT INTO `areainfo` VALUES ('341821', '郎溪县', '341800');
INSERT INTO `areainfo` VALUES ('341822', '广德县', '341800');
INSERT INTO `areainfo` VALUES ('341823', '泾县', '341800');
INSERT INTO `areainfo` VALUES ('341824', '绩溪县', '341800');
INSERT INTO `areainfo` VALUES ('341825', '旌德县', '341800');
INSERT INTO `areainfo` VALUES ('341881', '宁国市', '341800');
INSERT INTO `areainfo` VALUES ('350000', '福建省', NULL);
INSERT INTO `areainfo` VALUES ('350100', '福州市', '350000');
INSERT INTO `areainfo` VALUES ('350101', '市辖区', '350100');
INSERT INTO `areainfo` VALUES ('350102', '鼓楼区', '350100');
INSERT INTO `areainfo` VALUES ('350103', '台江区', '350100');
INSERT INTO `areainfo` VALUES ('350104', '仓山区', '350100');
INSERT INTO `areainfo` VALUES ('350105', '马尾区', '350100');
INSERT INTO `areainfo` VALUES ('350111', '晋安区', '350100');
INSERT INTO `areainfo` VALUES ('350121', '闽侯县', '350100');
INSERT INTO `areainfo` VALUES ('350122', '连江县', '350100');
INSERT INTO `areainfo` VALUES ('350123', '罗源县', '350100');
INSERT INTO `areainfo` VALUES ('350124', '闽清县', '350100');
INSERT INTO `areainfo` VALUES ('350125', '永泰县', '350100');
INSERT INTO `areainfo` VALUES ('350128', '平潭县', '350100');
INSERT INTO `areainfo` VALUES ('350181', '福清市', '350100');
INSERT INTO `areainfo` VALUES ('350182', '长乐市', '350100');
INSERT INTO `areainfo` VALUES ('350200', '厦门市', '350000');
INSERT INTO `areainfo` VALUES ('350201', '市辖区', '350200');
INSERT INTO `areainfo` VALUES ('350203', '思明区', '350200');
INSERT INTO `areainfo` VALUES ('350205', '海沧区', '350200');
INSERT INTO `areainfo` VALUES ('350206', '湖里区', '350200');
INSERT INTO `areainfo` VALUES ('350211', '集美区', '350200');
INSERT INTO `areainfo` VALUES ('350212', '同安区', '350200');
INSERT INTO `areainfo` VALUES ('350213', '翔安区', '350200');
INSERT INTO `areainfo` VALUES ('350300', '莆田市', '350000');
INSERT INTO `areainfo` VALUES ('350301', '市辖区', '350300');
INSERT INTO `areainfo` VALUES ('350302', '城厢区', '350300');
INSERT INTO `areainfo` VALUES ('350303', '涵江区', '350300');
INSERT INTO `areainfo` VALUES ('350304', '荔城区', '350300');
INSERT INTO `areainfo` VALUES ('350305', '秀屿区', '350300');
INSERT INTO `areainfo` VALUES ('350322', '仙游县', '350300');
INSERT INTO `areainfo` VALUES ('350400', '三明市', '350000');
INSERT INTO `areainfo` VALUES ('350401', '市辖区', '350400');
INSERT INTO `areainfo` VALUES ('350402', '梅列区', '350400');
INSERT INTO `areainfo` VALUES ('350403', '三元区', '350400');
INSERT INTO `areainfo` VALUES ('350421', '明溪县', '350400');
INSERT INTO `areainfo` VALUES ('350423', '清流县', '350400');
INSERT INTO `areainfo` VALUES ('350424', '宁化县', '350400');
INSERT INTO `areainfo` VALUES ('350425', '大田县', '350400');
INSERT INTO `areainfo` VALUES ('350426', '尤溪县', '350400');
INSERT INTO `areainfo` VALUES ('350427', '沙县', '350400');
INSERT INTO `areainfo` VALUES ('350428', '将乐县', '350400');
INSERT INTO `areainfo` VALUES ('350429', '泰宁县', '350400');
INSERT INTO `areainfo` VALUES ('350430', '建宁县', '350400');
INSERT INTO `areainfo` VALUES ('350481', '永安市', '350400');
INSERT INTO `areainfo` VALUES ('350500', '泉州市', '350000');
INSERT INTO `areainfo` VALUES ('350501', '市辖区', '350500');
INSERT INTO `areainfo` VALUES ('350502', '鲤城区', '350500');
INSERT INTO `areainfo` VALUES ('350503', '丰泽区', '350500');
INSERT INTO `areainfo` VALUES ('350504', '洛江区', '350500');
INSERT INTO `areainfo` VALUES ('350505', '泉港区', '350500');
INSERT INTO `areainfo` VALUES ('350521', '惠安县', '350500');
INSERT INTO `areainfo` VALUES ('350524', '安溪县', '350500');
INSERT INTO `areainfo` VALUES ('350525', '永春县', '350500');
INSERT INTO `areainfo` VALUES ('350526', '德化县', '350500');
INSERT INTO `areainfo` VALUES ('350527', '金门县', '350500');
INSERT INTO `areainfo` VALUES ('350581', '石狮市', '350500');
INSERT INTO `areainfo` VALUES ('350582', '晋江市', '350500');
INSERT INTO `areainfo` VALUES ('350583', '南安市', '350500');
INSERT INTO `areainfo` VALUES ('350600', '漳州市', '350000');
INSERT INTO `areainfo` VALUES ('350601', '市辖区', '350600');
INSERT INTO `areainfo` VALUES ('350602', '芗城区', '350600');
INSERT INTO `areainfo` VALUES ('350603', '龙文区', '350600');
INSERT INTO `areainfo` VALUES ('350622', '云霄县', '350600');
INSERT INTO `areainfo` VALUES ('350623', '漳浦县', '350600');
INSERT INTO `areainfo` VALUES ('350624', '诏安县', '350600');
INSERT INTO `areainfo` VALUES ('350625', '长泰县', '350600');
INSERT INTO `areainfo` VALUES ('350626', '东山县', '350600');
INSERT INTO `areainfo` VALUES ('350627', '南靖县', '350600');
INSERT INTO `areainfo` VALUES ('350628', '平和县', '350600');
INSERT INTO `areainfo` VALUES ('350629', '华安县', '350600');
INSERT INTO `areainfo` VALUES ('350681', '龙海市', '350600');
INSERT INTO `areainfo` VALUES ('350700', '南平市', '350000');
INSERT INTO `areainfo` VALUES ('350701', '市辖区', '350700');
INSERT INTO `areainfo` VALUES ('350702', '延平区', '350700');
INSERT INTO `areainfo` VALUES ('350703', '建阳区', '350700');
INSERT INTO `areainfo` VALUES ('350721', '顺昌县', '350700');
INSERT INTO `areainfo` VALUES ('350722', '浦城县', '350700');
INSERT INTO `areainfo` VALUES ('350723', '光泽县', '350700');
INSERT INTO `areainfo` VALUES ('350724', '松溪县', '350700');
INSERT INTO `areainfo` VALUES ('350725', '政和县', '350700');
INSERT INTO `areainfo` VALUES ('350781', '邵武市', '350700');
INSERT INTO `areainfo` VALUES ('350782', '武夷山市', '350700');
INSERT INTO `areainfo` VALUES ('350783', '建瓯市', '350700');
INSERT INTO `areainfo` VALUES ('350800', '龙岩市', '350000');
INSERT INTO `areainfo` VALUES ('350801', '市辖区', '350800');
INSERT INTO `areainfo` VALUES ('350802', '新罗区', '350800');
INSERT INTO `areainfo` VALUES ('350803', '永定区', '350800');
INSERT INTO `areainfo` VALUES ('350821', '长汀县', '350800');
INSERT INTO `areainfo` VALUES ('350823', '上杭县', '350800');
INSERT INTO `areainfo` VALUES ('350824', '武平县', '350800');
INSERT INTO `areainfo` VALUES ('350825', '连城县', '350800');
INSERT INTO `areainfo` VALUES ('350881', '漳平市', '350800');
INSERT INTO `areainfo` VALUES ('350900', '宁德市', '350000');
INSERT INTO `areainfo` VALUES ('350901', '市辖区', '350900');
INSERT INTO `areainfo` VALUES ('350902', '蕉城区', '350900');
INSERT INTO `areainfo` VALUES ('350921', '霞浦县', '350900');
INSERT INTO `areainfo` VALUES ('350922', '古田县', '350900');
INSERT INTO `areainfo` VALUES ('350923', '屏南县', '350900');
INSERT INTO `areainfo` VALUES ('350924', '寿宁县', '350900');
INSERT INTO `areainfo` VALUES ('350925', '周宁县', '350900');
INSERT INTO `areainfo` VALUES ('350926', '柘荣县', '350900');
INSERT INTO `areainfo` VALUES ('350981', '福安市', '350900');
INSERT INTO `areainfo` VALUES ('350982', '福鼎市', '350900');
INSERT INTO `areainfo` VALUES ('360000', '江西省', NULL);
INSERT INTO `areainfo` VALUES ('360100', '南昌市', '360000');
INSERT INTO `areainfo` VALUES ('360101', '市辖区', '360100');
INSERT INTO `areainfo` VALUES ('360102', '东湖区', '360100');
INSERT INTO `areainfo` VALUES ('360103', '西湖区', '360100');
INSERT INTO `areainfo` VALUES ('360104', '青云谱区', '360100');
INSERT INTO `areainfo` VALUES ('360105', '湾里区', '360100');
INSERT INTO `areainfo` VALUES ('360111', '青山湖区', '360100');
INSERT INTO `areainfo` VALUES ('360112', '新建区', '360100');
INSERT INTO `areainfo` VALUES ('360121', '南昌县', '360100');
INSERT INTO `areainfo` VALUES ('360123', '安义县', '360100');
INSERT INTO `areainfo` VALUES ('360124', '进贤县', '360100');
INSERT INTO `areainfo` VALUES ('360200', '景德镇市', '360000');
INSERT INTO `areainfo` VALUES ('360201', '市辖区', '360200');
INSERT INTO `areainfo` VALUES ('360202', '昌江区', '360200');
INSERT INTO `areainfo` VALUES ('360203', '珠山区', '360200');
INSERT INTO `areainfo` VALUES ('360222', '浮梁县', '360200');
INSERT INTO `areainfo` VALUES ('360281', '乐平市', '360200');
INSERT INTO `areainfo` VALUES ('360300', '萍乡市', '360000');
INSERT INTO `areainfo` VALUES ('360301', '市辖区', '360300');
INSERT INTO `areainfo` VALUES ('360302', '安源区', '360300');
INSERT INTO `areainfo` VALUES ('360313', '湘东区', '360300');
INSERT INTO `areainfo` VALUES ('360321', '莲花县', '360300');
INSERT INTO `areainfo` VALUES ('360322', '上栗县', '360300');
INSERT INTO `areainfo` VALUES ('360323', '芦溪县', '360300');
INSERT INTO `areainfo` VALUES ('360400', '九江市', '360000');
INSERT INTO `areainfo` VALUES ('360401', '市辖区', '360400');
INSERT INTO `areainfo` VALUES ('360402', '濂溪区', '360400');
INSERT INTO `areainfo` VALUES ('360403', '浔阳区', '360400');
INSERT INTO `areainfo` VALUES ('360421', '九江县', '360400');
INSERT INTO `areainfo` VALUES ('360423', '武宁县', '360400');
INSERT INTO `areainfo` VALUES ('360424', '修水县', '360400');
INSERT INTO `areainfo` VALUES ('360425', '永修县', '360400');
INSERT INTO `areainfo` VALUES ('360426', '德安县', '360400');
INSERT INTO `areainfo` VALUES ('360428', '都昌县', '360400');
INSERT INTO `areainfo` VALUES ('360429', '湖口县', '360400');
INSERT INTO `areainfo` VALUES ('360430', '彭泽县', '360400');
INSERT INTO `areainfo` VALUES ('360481', '瑞昌市', '360400');
INSERT INTO `areainfo` VALUES ('360482', '共青城市', '360400');
INSERT INTO `areainfo` VALUES ('360483', '庐山市', '360400');
INSERT INTO `areainfo` VALUES ('360500', '新余市', '360000');
INSERT INTO `areainfo` VALUES ('360501', '市辖区', '360500');
INSERT INTO `areainfo` VALUES ('360502', '渝水区', '360500');
INSERT INTO `areainfo` VALUES ('360521', '分宜县', '360500');
INSERT INTO `areainfo` VALUES ('360600', '鹰潭市', '360000');
INSERT INTO `areainfo` VALUES ('360601', '市辖区', '360600');
INSERT INTO `areainfo` VALUES ('360602', '月湖区', '360600');
INSERT INTO `areainfo` VALUES ('360622', '余江县', '360600');
INSERT INTO `areainfo` VALUES ('360681', '贵溪市', '360600');
INSERT INTO `areainfo` VALUES ('360700', '赣州市', '360000');
INSERT INTO `areainfo` VALUES ('360701', '市辖区', '360700');
INSERT INTO `areainfo` VALUES ('360702', '章贡区', '360700');
INSERT INTO `areainfo` VALUES ('360703', '南康区', '360700');
INSERT INTO `areainfo` VALUES ('360721', '赣县', '360700');
INSERT INTO `areainfo` VALUES ('360722', '信丰县', '360700');
INSERT INTO `areainfo` VALUES ('360723', '大余县', '360700');
INSERT INTO `areainfo` VALUES ('360724', '上犹县', '360700');
INSERT INTO `areainfo` VALUES ('360725', '崇义县', '360700');
INSERT INTO `areainfo` VALUES ('360726', '安远县', '360700');
INSERT INTO `areainfo` VALUES ('360727', '龙南县', '360700');
INSERT INTO `areainfo` VALUES ('360728', '定南县', '360700');
INSERT INTO `areainfo` VALUES ('360729', '全南县', '360700');
INSERT INTO `areainfo` VALUES ('360730', '宁都县', '360700');
INSERT INTO `areainfo` VALUES ('360731', '于都县', '360700');
INSERT INTO `areainfo` VALUES ('360732', '兴国县', '360700');
INSERT INTO `areainfo` VALUES ('360733', '会昌县', '360700');
INSERT INTO `areainfo` VALUES ('360734', '寻乌县', '360700');
INSERT INTO `areainfo` VALUES ('360735', '石城县', '360700');
INSERT INTO `areainfo` VALUES ('360781', '瑞金市', '360700');
INSERT INTO `areainfo` VALUES ('360800', '吉安市', '360000');
INSERT INTO `areainfo` VALUES ('360801', '市辖区', '360800');
INSERT INTO `areainfo` VALUES ('360802', '吉州区', '360800');
INSERT INTO `areainfo` VALUES ('360803', '青原区', '360800');
INSERT INTO `areainfo` VALUES ('360821', '吉安县', '360800');
INSERT INTO `areainfo` VALUES ('360822', '吉水县', '360800');
INSERT INTO `areainfo` VALUES ('360823', '峡江县', '360800');
INSERT INTO `areainfo` VALUES ('360824', '新干县', '360800');
INSERT INTO `areainfo` VALUES ('360825', '永丰县', '360800');
INSERT INTO `areainfo` VALUES ('360826', '泰和县', '360800');
INSERT INTO `areainfo` VALUES ('360827', '遂川县', '360800');
INSERT INTO `areainfo` VALUES ('360828', '万安县', '360800');
INSERT INTO `areainfo` VALUES ('360829', '安福县', '360800');
INSERT INTO `areainfo` VALUES ('360830', '永新县', '360800');
INSERT INTO `areainfo` VALUES ('360881', '井冈山市', '360800');
INSERT INTO `areainfo` VALUES ('360900', '宜春市', '360000');
INSERT INTO `areainfo` VALUES ('360901', '市辖区', '360900');
INSERT INTO `areainfo` VALUES ('360902', '袁州区', '360900');
INSERT INTO `areainfo` VALUES ('360921', '奉新县', '360900');
INSERT INTO `areainfo` VALUES ('360922', '万载县', '360900');
INSERT INTO `areainfo` VALUES ('360923', '上高县', '360900');
INSERT INTO `areainfo` VALUES ('360924', '宜丰县', '360900');
INSERT INTO `areainfo` VALUES ('360925', '靖安县', '360900');
INSERT INTO `areainfo` VALUES ('360926', '铜鼓县', '360900');
INSERT INTO `areainfo` VALUES ('360981', '丰城市', '360900');
INSERT INTO `areainfo` VALUES ('360982', '樟树市', '360900');
INSERT INTO `areainfo` VALUES ('360983', '高安市', '360900');
INSERT INTO `areainfo` VALUES ('361000', '抚州市', '360000');
INSERT INTO `areainfo` VALUES ('361001', '市辖区', '361000');
INSERT INTO `areainfo` VALUES ('361002', '临川区', '361000');
INSERT INTO `areainfo` VALUES ('361021', '南城县', '361000');
INSERT INTO `areainfo` VALUES ('361022', '黎川县', '361000');
INSERT INTO `areainfo` VALUES ('361023', '南丰县', '361000');
INSERT INTO `areainfo` VALUES ('361024', '崇仁县', '361000');
INSERT INTO `areainfo` VALUES ('361025', '乐安县', '361000');
INSERT INTO `areainfo` VALUES ('361026', '宜黄县', '361000');
INSERT INTO `areainfo` VALUES ('361027', '金溪县', '361000');
INSERT INTO `areainfo` VALUES ('361028', '资溪县', '361000');
INSERT INTO `areainfo` VALUES ('361029', '东乡县', '361000');
INSERT INTO `areainfo` VALUES ('361030', '广昌县', '361000');
INSERT INTO `areainfo` VALUES ('361100', '上饶市', '360000');
INSERT INTO `areainfo` VALUES ('361101', '市辖区', '361100');
INSERT INTO `areainfo` VALUES ('361102', '信州区', '361100');
INSERT INTO `areainfo` VALUES ('361103', '广丰区', '361100');
INSERT INTO `areainfo` VALUES ('361121', '上饶县', '361100');
INSERT INTO `areainfo` VALUES ('361123', '玉山县', '361100');
INSERT INTO `areainfo` VALUES ('361124', '铅山县', '361100');
INSERT INTO `areainfo` VALUES ('361125', '横峰县', '361100');
INSERT INTO `areainfo` VALUES ('361126', '弋阳县', '361100');
INSERT INTO `areainfo` VALUES ('361127', '余干县', '361100');
INSERT INTO `areainfo` VALUES ('361128', '鄱阳县', '361100');
INSERT INTO `areainfo` VALUES ('361129', '万年县', '361100');
INSERT INTO `areainfo` VALUES ('361130', '婺源县', '361100');
INSERT INTO `areainfo` VALUES ('361181', '德兴市', '361100');
INSERT INTO `areainfo` VALUES ('370000', '山东省', NULL);
INSERT INTO `areainfo` VALUES ('370100', '济南市', '370000');
INSERT INTO `areainfo` VALUES ('370101', '市辖区', '370100');
INSERT INTO `areainfo` VALUES ('370102', '历下区', '370100');
INSERT INTO `areainfo` VALUES ('370103', '市中区', '370100');
INSERT INTO `areainfo` VALUES ('370104', '槐荫区', '370100');
INSERT INTO `areainfo` VALUES ('370105', '天桥区', '370100');
INSERT INTO `areainfo` VALUES ('370112', '历城区', '370100');
INSERT INTO `areainfo` VALUES ('370113', '长清区', '370100');
INSERT INTO `areainfo` VALUES ('370124', '平阴县', '370100');
INSERT INTO `areainfo` VALUES ('370125', '济阳县', '370100');
INSERT INTO `areainfo` VALUES ('370126', '商河县', '370100');
INSERT INTO `areainfo` VALUES ('370181', '章丘市', '370100');
INSERT INTO `areainfo` VALUES ('370200', '青岛市', '370000');
INSERT INTO `areainfo` VALUES ('370201', '市辖区', '370200');
INSERT INTO `areainfo` VALUES ('370202', '市南区', '370200');
INSERT INTO `areainfo` VALUES ('370203', '市北区', '370200');
INSERT INTO `areainfo` VALUES ('370211', '黄岛区', '370200');
INSERT INTO `areainfo` VALUES ('370212', '崂山区', '370200');
INSERT INTO `areainfo` VALUES ('370213', '李沧区', '370200');
INSERT INTO `areainfo` VALUES ('370214', '城阳区', '370200');
INSERT INTO `areainfo` VALUES ('370281', '胶州市', '370200');
INSERT INTO `areainfo` VALUES ('370282', '即墨市', '370200');
INSERT INTO `areainfo` VALUES ('370283', '平度市', '370200');
INSERT INTO `areainfo` VALUES ('370285', '莱西市', '370200');
INSERT INTO `areainfo` VALUES ('370300', '淄博市', '370000');
INSERT INTO `areainfo` VALUES ('370301', '市辖区', '370300');
INSERT INTO `areainfo` VALUES ('370302', '淄川区', '370300');
INSERT INTO `areainfo` VALUES ('370303', '张店区', '370300');
INSERT INTO `areainfo` VALUES ('370304', '博山区', '370300');
INSERT INTO `areainfo` VALUES ('370305', '临淄区', '370300');
INSERT INTO `areainfo` VALUES ('370306', '周村区', '370300');
INSERT INTO `areainfo` VALUES ('370321', '桓台县', '370300');
INSERT INTO `areainfo` VALUES ('370322', '高青县', '370300');
INSERT INTO `areainfo` VALUES ('370323', '沂源县', '370300');
INSERT INTO `areainfo` VALUES ('370400', '枣庄市', '370000');
INSERT INTO `areainfo` VALUES ('370401', '市辖区', '370400');
INSERT INTO `areainfo` VALUES ('370402', '市中区', '370400');
INSERT INTO `areainfo` VALUES ('370403', '薛城区', '370400');
INSERT INTO `areainfo` VALUES ('370404', '峄城区', '370400');
INSERT INTO `areainfo` VALUES ('370405', '台儿庄区', '370400');
INSERT INTO `areainfo` VALUES ('370406', '山亭区', '370400');
INSERT INTO `areainfo` VALUES ('370481', '滕州市', '370400');
INSERT INTO `areainfo` VALUES ('370500', '东营市', '370000');
INSERT INTO `areainfo` VALUES ('370501', '市辖区', '370500');
INSERT INTO `areainfo` VALUES ('370502', '东营区', '370500');
INSERT INTO `areainfo` VALUES ('370503', '河口区', '370500');
INSERT INTO `areainfo` VALUES ('370505', '垦利区', '370500');
INSERT INTO `areainfo` VALUES ('370522', '利津县', '370500');
INSERT INTO `areainfo` VALUES ('370523', '广饶县', '370500');
INSERT INTO `areainfo` VALUES ('370600', '烟台市', '370000');
INSERT INTO `areainfo` VALUES ('370601', '市辖区', '370600');
INSERT INTO `areainfo` VALUES ('370602', '芝罘区', '370600');
INSERT INTO `areainfo` VALUES ('370611', '福山区', '370600');
INSERT INTO `areainfo` VALUES ('370612', '牟平区', '370600');
INSERT INTO `areainfo` VALUES ('370613', '莱山区', '370600');
INSERT INTO `areainfo` VALUES ('370634', '长岛县', '370600');
INSERT INTO `areainfo` VALUES ('370681', '龙口市', '370600');
INSERT INTO `areainfo` VALUES ('370682', '莱阳市', '370600');
INSERT INTO `areainfo` VALUES ('370683', '莱州市', '370600');
INSERT INTO `areainfo` VALUES ('370684', '蓬莱市', '370600');
INSERT INTO `areainfo` VALUES ('370685', '招远市', '370600');
INSERT INTO `areainfo` VALUES ('370686', '栖霞市', '370600');
INSERT INTO `areainfo` VALUES ('370687', '海阳市', '370600');
INSERT INTO `areainfo` VALUES ('370700', '潍坊市', '370000');
INSERT INTO `areainfo` VALUES ('370701', '市辖区', '370700');
INSERT INTO `areainfo` VALUES ('370702', '潍城区', '370700');
INSERT INTO `areainfo` VALUES ('370703', '寒亭区', '370700');
INSERT INTO `areainfo` VALUES ('370704', '坊子区', '370700');
INSERT INTO `areainfo` VALUES ('370705', '奎文区', '370700');
INSERT INTO `areainfo` VALUES ('370724', '临朐县', '370700');
INSERT INTO `areainfo` VALUES ('370725', '昌乐县', '370700');
INSERT INTO `areainfo` VALUES ('370781', '青州市', '370700');
INSERT INTO `areainfo` VALUES ('370782', '诸城市', '370700');
INSERT INTO `areainfo` VALUES ('370783', '寿光市', '370700');
INSERT INTO `areainfo` VALUES ('370784', '安丘市', '370700');
INSERT INTO `areainfo` VALUES ('370785', '高密市', '370700');
INSERT INTO `areainfo` VALUES ('370786', '昌邑市', '370700');
INSERT INTO `areainfo` VALUES ('370800', '济宁市', '370000');
INSERT INTO `areainfo` VALUES ('370801', '市辖区', '370800');
INSERT INTO `areainfo` VALUES ('370811', '任城区', '370800');
INSERT INTO `areainfo` VALUES ('370812', '兖州区', '370800');
INSERT INTO `areainfo` VALUES ('370826', '微山县', '370800');
INSERT INTO `areainfo` VALUES ('370827', '鱼台县', '370800');
INSERT INTO `areainfo` VALUES ('370828', '金乡县', '370800');
INSERT INTO `areainfo` VALUES ('370829', '嘉祥县', '370800');
INSERT INTO `areainfo` VALUES ('370830', '汶上县', '370800');
INSERT INTO `areainfo` VALUES ('370831', '泗水县', '370800');
INSERT INTO `areainfo` VALUES ('370832', '梁山县', '370800');
INSERT INTO `areainfo` VALUES ('370881', '曲阜市', '370800');
INSERT INTO `areainfo` VALUES ('370883', '邹城市', '370800');
INSERT INTO `areainfo` VALUES ('370900', '泰安市', '370000');
INSERT INTO `areainfo` VALUES ('370901', '市辖区', '370900');
INSERT INTO `areainfo` VALUES ('370902', '泰山区', '370900');
INSERT INTO `areainfo` VALUES ('370911', '岱岳区', '370900');
INSERT INTO `areainfo` VALUES ('370921', '宁阳县', '370900');
INSERT INTO `areainfo` VALUES ('370923', '东平县', '370900');
INSERT INTO `areainfo` VALUES ('370982', '新泰市', '370900');
INSERT INTO `areainfo` VALUES ('370983', '肥城市', '370900');
INSERT INTO `areainfo` VALUES ('371000', '威海市', '370000');
INSERT INTO `areainfo` VALUES ('371001', '市辖区', '371000');
INSERT INTO `areainfo` VALUES ('371002', '环翠区', '371000');
INSERT INTO `areainfo` VALUES ('371003', '文登区', '371000');
INSERT INTO `areainfo` VALUES ('371082', '荣成市', '371000');
INSERT INTO `areainfo` VALUES ('371083', '乳山市', '371000');
INSERT INTO `areainfo` VALUES ('371100', '日照市', '370000');
INSERT INTO `areainfo` VALUES ('371101', '市辖区', '371100');
INSERT INTO `areainfo` VALUES ('371102', '东港区', '371100');
INSERT INTO `areainfo` VALUES ('371103', '岚山区', '371100');
INSERT INTO `areainfo` VALUES ('371121', '五莲县', '371100');
INSERT INTO `areainfo` VALUES ('371122', '莒县', '371100');
INSERT INTO `areainfo` VALUES ('371200', '莱芜市', '370000');
INSERT INTO `areainfo` VALUES ('371201', '市辖区', '371200');
INSERT INTO `areainfo` VALUES ('371202', '莱城区', '371200');
INSERT INTO `areainfo` VALUES ('371203', '钢城区', '371200');
INSERT INTO `areainfo` VALUES ('371300', '临沂市', '370000');
INSERT INTO `areainfo` VALUES ('371301', '市辖区', '371300');
INSERT INTO `areainfo` VALUES ('371302', '兰山区', '371300');
INSERT INTO `areainfo` VALUES ('371311', '罗庄区', '371300');
INSERT INTO `areainfo` VALUES ('371312', '河东区', '371300');
INSERT INTO `areainfo` VALUES ('371321', '沂南县', '371300');
INSERT INTO `areainfo` VALUES ('371322', '郯城县', '371300');
INSERT INTO `areainfo` VALUES ('371323', '沂水县', '371300');
INSERT INTO `areainfo` VALUES ('371324', '兰陵县', '371300');
INSERT INTO `areainfo` VALUES ('371325', '费县', '371300');
INSERT INTO `areainfo` VALUES ('371326', '平邑县', '371300');
INSERT INTO `areainfo` VALUES ('371327', '莒南县', '371300');
INSERT INTO `areainfo` VALUES ('371328', '蒙阴县', '371300');
INSERT INTO `areainfo` VALUES ('371329', '临沭县', '371300');
INSERT INTO `areainfo` VALUES ('371400', '德州市', '370000');
INSERT INTO `areainfo` VALUES ('371401', '市辖区', '371400');
INSERT INTO `areainfo` VALUES ('371402', '德城区', '371400');
INSERT INTO `areainfo` VALUES ('371403', '陵城区', '371400');
INSERT INTO `areainfo` VALUES ('371422', '宁津县', '371400');
INSERT INTO `areainfo` VALUES ('371423', '庆云县', '371400');
INSERT INTO `areainfo` VALUES ('371424', '临邑县', '371400');
INSERT INTO `areainfo` VALUES ('371425', '齐河县', '371400');
INSERT INTO `areainfo` VALUES ('371426', '平原县', '371400');
INSERT INTO `areainfo` VALUES ('371427', '夏津县', '371400');
INSERT INTO `areainfo` VALUES ('371428', '武城县', '371400');
INSERT INTO `areainfo` VALUES ('371481', '乐陵市', '371400');
INSERT INTO `areainfo` VALUES ('371482', '禹城市', '371400');
INSERT INTO `areainfo` VALUES ('371500', '聊城市', '370000');
INSERT INTO `areainfo` VALUES ('371501', '市辖区', '371500');
INSERT INTO `areainfo` VALUES ('371502', '东昌府区', '371500');
INSERT INTO `areainfo` VALUES ('371521', '阳谷县', '371500');
INSERT INTO `areainfo` VALUES ('371522', '莘县', '371500');
INSERT INTO `areainfo` VALUES ('371523', '茌平县', '371500');
INSERT INTO `areainfo` VALUES ('371524', '东阿县', '371500');
INSERT INTO `areainfo` VALUES ('371525', '冠县', '371500');
INSERT INTO `areainfo` VALUES ('371526', '高唐县', '371500');
INSERT INTO `areainfo` VALUES ('371581', '临清市', '371500');
INSERT INTO `areainfo` VALUES ('371600', '滨州市', '370000');
INSERT INTO `areainfo` VALUES ('371601', '市辖区', '371600');
INSERT INTO `areainfo` VALUES ('371602', '滨城区', '371600');
INSERT INTO `areainfo` VALUES ('371603', '沾化区', '371600');
INSERT INTO `areainfo` VALUES ('371621', '惠民县', '371600');
INSERT INTO `areainfo` VALUES ('371622', '阳信县', '371600');
INSERT INTO `areainfo` VALUES ('371623', '无棣县', '371600');
INSERT INTO `areainfo` VALUES ('371625', '博兴县', '371600');
INSERT INTO `areainfo` VALUES ('371626', '邹平县', '371600');
INSERT INTO `areainfo` VALUES ('371700', '菏泽市', '370000');
INSERT INTO `areainfo` VALUES ('371701', '市辖区', '371700');
INSERT INTO `areainfo` VALUES ('371702', '牡丹区', '371700');
INSERT INTO `areainfo` VALUES ('371703', '定陶区', '371700');
INSERT INTO `areainfo` VALUES ('371721', '曹县', '371700');
INSERT INTO `areainfo` VALUES ('371722', '单县', '371700');
INSERT INTO `areainfo` VALUES ('371723', '成武县', '371700');
INSERT INTO `areainfo` VALUES ('371724', '巨野县', '371700');
INSERT INTO `areainfo` VALUES ('371725', '郓城县', '371700');
INSERT INTO `areainfo` VALUES ('371726', '鄄城县', '371700');
INSERT INTO `areainfo` VALUES ('371728', '东明县', '371700');
INSERT INTO `areainfo` VALUES ('410000', '河南省', NULL);
INSERT INTO `areainfo` VALUES ('410100', '郑州市', '410000');
INSERT INTO `areainfo` VALUES ('410101', '市辖区', '410100');
INSERT INTO `areainfo` VALUES ('410102', '中原区', '410100');
INSERT INTO `areainfo` VALUES ('410103', '二七区', '410100');
INSERT INTO `areainfo` VALUES ('410104', '管城回族区', '410100');
INSERT INTO `areainfo` VALUES ('410105', '金水区', '410100');
INSERT INTO `areainfo` VALUES ('410106', '上街区', '410100');
INSERT INTO `areainfo` VALUES ('410108', '惠济区', '410100');
INSERT INTO `areainfo` VALUES ('410122', '中牟县', '410100');
INSERT INTO `areainfo` VALUES ('410181', '巩义市', '410100');
INSERT INTO `areainfo` VALUES ('410182', '荥阳市', '410100');
INSERT INTO `areainfo` VALUES ('410183', '新密市', '410100');
INSERT INTO `areainfo` VALUES ('410184', '新郑市', '410100');
INSERT INTO `areainfo` VALUES ('410185', '登封市', '410100');
INSERT INTO `areainfo` VALUES ('410200', '开封市', '410000');
INSERT INTO `areainfo` VALUES ('410201', '市辖区', '410200');
INSERT INTO `areainfo` VALUES ('410202', '龙亭区', '410200');
INSERT INTO `areainfo` VALUES ('410203', '顺河回族区', '410200');
INSERT INTO `areainfo` VALUES ('410204', '鼓楼区', '410200');
INSERT INTO `areainfo` VALUES ('410205', '禹王台区', '410200');
INSERT INTO `areainfo` VALUES ('410211', '金明区', '410200');
INSERT INTO `areainfo` VALUES ('410212', '祥符区', '410200');
INSERT INTO `areainfo` VALUES ('410221', '杞县', '410200');
INSERT INTO `areainfo` VALUES ('410222', '通许县', '410200');
INSERT INTO `areainfo` VALUES ('410223', '尉氏县', '410200');
INSERT INTO `areainfo` VALUES ('410225', '兰考县', '410200');
INSERT INTO `areainfo` VALUES ('410300', '洛阳市', '410000');
INSERT INTO `areainfo` VALUES ('410301', '市辖区', '410300');
INSERT INTO `areainfo` VALUES ('410302', '老城区', '410300');
INSERT INTO `areainfo` VALUES ('410303', '西工区', '410300');
INSERT INTO `areainfo` VALUES ('410304', '瀍河回族区', '410300');
INSERT INTO `areainfo` VALUES ('410305', '涧西区', '410300');
INSERT INTO `areainfo` VALUES ('410306', '吉利区', '410300');
INSERT INTO `areainfo` VALUES ('410311', '洛龙区', '410300');
INSERT INTO `areainfo` VALUES ('410322', '孟津县', '410300');
INSERT INTO `areainfo` VALUES ('410323', '新安县', '410300');
INSERT INTO `areainfo` VALUES ('410324', '栾川县', '410300');
INSERT INTO `areainfo` VALUES ('410325', '嵩县', '410300');
INSERT INTO `areainfo` VALUES ('410326', '汝阳县', '410300');
INSERT INTO `areainfo` VALUES ('410327', '宜阳县', '410300');
INSERT INTO `areainfo` VALUES ('410328', '洛宁县', '410300');
INSERT INTO `areainfo` VALUES ('410329', '伊川县', '410300');
INSERT INTO `areainfo` VALUES ('410381', '偃师市', '410300');
INSERT INTO `areainfo` VALUES ('410400', '平顶山市', '410000');
INSERT INTO `areainfo` VALUES ('410401', '市辖区', '410400');
INSERT INTO `areainfo` VALUES ('410402', '新华区', '410400');
INSERT INTO `areainfo` VALUES ('410403', '卫东区', '410400');
INSERT INTO `areainfo` VALUES ('410404', '石龙区', '410400');
INSERT INTO `areainfo` VALUES ('410411', '湛河区', '410400');
INSERT INTO `areainfo` VALUES ('410421', '宝丰县', '410400');
INSERT INTO `areainfo` VALUES ('410422', '叶县', '410400');
INSERT INTO `areainfo` VALUES ('410423', '鲁山县', '410400');
INSERT INTO `areainfo` VALUES ('410425', '郏县', '410400');
INSERT INTO `areainfo` VALUES ('410481', '舞钢市', '410400');
INSERT INTO `areainfo` VALUES ('410482', '汝州市', '410400');
INSERT INTO `areainfo` VALUES ('410500', '安阳市', '410000');
INSERT INTO `areainfo` VALUES ('410501', '市辖区', '410500');
INSERT INTO `areainfo` VALUES ('410502', '文峰区', '410500');
INSERT INTO `areainfo` VALUES ('410503', '北关区', '410500');
INSERT INTO `areainfo` VALUES ('410505', '殷都区', '410500');
INSERT INTO `areainfo` VALUES ('410506', '龙安区', '410500');
INSERT INTO `areainfo` VALUES ('410522', '安阳县', '410500');
INSERT INTO `areainfo` VALUES ('410523', '汤阴县', '410500');
INSERT INTO `areainfo` VALUES ('410526', '滑县', '410500');
INSERT INTO `areainfo` VALUES ('410527', '内黄县', '410500');
INSERT INTO `areainfo` VALUES ('410581', '林州市', '410500');
INSERT INTO `areainfo` VALUES ('410600', '鹤壁市', '410000');
INSERT INTO `areainfo` VALUES ('410601', '市辖区', '410600');
INSERT INTO `areainfo` VALUES ('410602', '鹤山区', '410600');
INSERT INTO `areainfo` VALUES ('410603', '山城区', '410600');
INSERT INTO `areainfo` VALUES ('410611', '淇滨区', '410600');
INSERT INTO `areainfo` VALUES ('410621', '浚县', '410600');
INSERT INTO `areainfo` VALUES ('410622', '淇县', '410600');
INSERT INTO `areainfo` VALUES ('410700', '新乡市', '410000');
INSERT INTO `areainfo` VALUES ('410701', '市辖区', '410700');
INSERT INTO `areainfo` VALUES ('410702', '红旗区', '410700');
INSERT INTO `areainfo` VALUES ('410703', '卫滨区', '410700');
INSERT INTO `areainfo` VALUES ('410704', '凤泉区', '410700');
INSERT INTO `areainfo` VALUES ('410711', '牧野区', '410700');
INSERT INTO `areainfo` VALUES ('410721', '新乡县', '410700');
INSERT INTO `areainfo` VALUES ('410724', '获嘉县', '410700');
INSERT INTO `areainfo` VALUES ('410725', '原阳县', '410700');
INSERT INTO `areainfo` VALUES ('410726', '延津县', '410700');
INSERT INTO `areainfo` VALUES ('410727', '封丘县', '410700');
INSERT INTO `areainfo` VALUES ('410728', '长垣县', '410700');
INSERT INTO `areainfo` VALUES ('410781', '卫辉市', '410700');
INSERT INTO `areainfo` VALUES ('410782', '辉县市', '410700');
INSERT INTO `areainfo` VALUES ('410800', '焦作市', '410000');
INSERT INTO `areainfo` VALUES ('410801', '市辖区', '410800');
INSERT INTO `areainfo` VALUES ('410802', '解放区', '410800');
INSERT INTO `areainfo` VALUES ('410803', '中站区', '410800');
INSERT INTO `areainfo` VALUES ('410804', '马村区', '410800');
INSERT INTO `areainfo` VALUES ('410811', '山阳区', '410800');
INSERT INTO `areainfo` VALUES ('410821', '修武县', '410800');
INSERT INTO `areainfo` VALUES ('410822', '博爱县', '410800');
INSERT INTO `areainfo` VALUES ('410823', '武陟县', '410800');
INSERT INTO `areainfo` VALUES ('410825', '温县', '410800');
INSERT INTO `areainfo` VALUES ('410882', '沁阳市', '410800');
INSERT INTO `areainfo` VALUES ('410883', '孟州市', '410800');
INSERT INTO `areainfo` VALUES ('410900', '濮阳市', '410000');
INSERT INTO `areainfo` VALUES ('410901', '市辖区', '410900');
INSERT INTO `areainfo` VALUES ('410902', '华龙区', '410900');
INSERT INTO `areainfo` VALUES ('410922', '清丰县', '410900');
INSERT INTO `areainfo` VALUES ('410923', '南乐县', '410900');
INSERT INTO `areainfo` VALUES ('410926', '范县', '410900');
INSERT INTO `areainfo` VALUES ('410927', '台前县', '410900');
INSERT INTO `areainfo` VALUES ('410928', '濮阳县', '410900');
INSERT INTO `areainfo` VALUES ('411000', '许昌市', '410000');
INSERT INTO `areainfo` VALUES ('411001', '市辖区', '411000');
INSERT INTO `areainfo` VALUES ('411002', '魏都区', '411000');
INSERT INTO `areainfo` VALUES ('411023', '许昌县', '411000');
INSERT INTO `areainfo` VALUES ('411024', '鄢陵县', '411000');
INSERT INTO `areainfo` VALUES ('411025', '襄城县', '411000');
INSERT INTO `areainfo` VALUES ('411081', '禹州市', '411000');
INSERT INTO `areainfo` VALUES ('411082', '长葛市', '411000');
INSERT INTO `areainfo` VALUES ('411100', '漯河市', '410000');
INSERT INTO `areainfo` VALUES ('411101', '市辖区', '411100');
INSERT INTO `areainfo` VALUES ('411102', '源汇区', '411100');
INSERT INTO `areainfo` VALUES ('411103', '郾城区', '411100');
INSERT INTO `areainfo` VALUES ('411104', '召陵区', '411100');
INSERT INTO `areainfo` VALUES ('411121', '舞阳县', '411100');
INSERT INTO `areainfo` VALUES ('411122', '临颍县', '411100');
INSERT INTO `areainfo` VALUES ('411200', '三门峡市', '410000');
INSERT INTO `areainfo` VALUES ('411201', '市辖区', '411200');
INSERT INTO `areainfo` VALUES ('411202', '湖滨区', '411200');
INSERT INTO `areainfo` VALUES ('411203', '陕州区', '411200');
INSERT INTO `areainfo` VALUES ('411221', '渑池县', '411200');
INSERT INTO `areainfo` VALUES ('411224', '卢氏县', '411200');
INSERT INTO `areainfo` VALUES ('411281', '义马市', '411200');
INSERT INTO `areainfo` VALUES ('411282', '灵宝市', '411200');
INSERT INTO `areainfo` VALUES ('411300', '南阳市', '410000');
INSERT INTO `areainfo` VALUES ('411301', '市辖区', '411300');
INSERT INTO `areainfo` VALUES ('411302', '宛城区', '411300');
INSERT INTO `areainfo` VALUES ('411303', '卧龙区', '411300');
INSERT INTO `areainfo` VALUES ('411321', '南召县', '411300');
INSERT INTO `areainfo` VALUES ('411322', '方城县', '411300');
INSERT INTO `areainfo` VALUES ('411323', '西峡县', '411300');
INSERT INTO `areainfo` VALUES ('411324', '镇平县', '411300');
INSERT INTO `areainfo` VALUES ('411325', '内乡县', '411300');
INSERT INTO `areainfo` VALUES ('411326', '淅川县', '411300');
INSERT INTO `areainfo` VALUES ('411327', '社旗县', '411300');
INSERT INTO `areainfo` VALUES ('411328', '唐河县', '411300');
INSERT INTO `areainfo` VALUES ('411329', '新野县', '411300');
INSERT INTO `areainfo` VALUES ('411330', '桐柏县', '411300');
INSERT INTO `areainfo` VALUES ('411381', '邓州市', '411300');
INSERT INTO `areainfo` VALUES ('411400', '商丘市', '410000');
INSERT INTO `areainfo` VALUES ('411401', '市辖区', '411400');
INSERT INTO `areainfo` VALUES ('411402', '梁园区', '411400');
INSERT INTO `areainfo` VALUES ('411403', '睢阳区', '411400');
INSERT INTO `areainfo` VALUES ('411421', '民权县', '411400');
INSERT INTO `areainfo` VALUES ('411422', '睢县', '411400');
INSERT INTO `areainfo` VALUES ('411423', '宁陵县', '411400');
INSERT INTO `areainfo` VALUES ('411424', '柘城县', '411400');
INSERT INTO `areainfo` VALUES ('411425', '虞城县', '411400');
INSERT INTO `areainfo` VALUES ('411426', '夏邑县', '411400');
INSERT INTO `areainfo` VALUES ('411481', '永城市', '411400');
INSERT INTO `areainfo` VALUES ('411500', '信阳市', '410000');
INSERT INTO `areainfo` VALUES ('411501', '市辖区', '411500');
INSERT INTO `areainfo` VALUES ('411502', '浉河区', '411500');
INSERT INTO `areainfo` VALUES ('411503', '平桥区', '411500');
INSERT INTO `areainfo` VALUES ('411521', '罗山县', '411500');
INSERT INTO `areainfo` VALUES ('411522', '光山县', '411500');
INSERT INTO `areainfo` VALUES ('411523', '新县', '411500');
INSERT INTO `areainfo` VALUES ('411524', '商城县', '411500');
INSERT INTO `areainfo` VALUES ('411525', '固始县', '411500');
INSERT INTO `areainfo` VALUES ('411526', '潢川县', '411500');
INSERT INTO `areainfo` VALUES ('411527', '淮滨县', '411500');
INSERT INTO `areainfo` VALUES ('411528', '息县', '411500');
INSERT INTO `areainfo` VALUES ('411600', '周口市', '410000');
INSERT INTO `areainfo` VALUES ('411601', '市辖区', '411600');
INSERT INTO `areainfo` VALUES ('411602', '川汇区', '411600');
INSERT INTO `areainfo` VALUES ('411621', '扶沟县', '411600');
INSERT INTO `areainfo` VALUES ('411622', '西华县', '411600');
INSERT INTO `areainfo` VALUES ('411623', '商水县', '411600');
INSERT INTO `areainfo` VALUES ('411624', '沈丘县', '411600');
INSERT INTO `areainfo` VALUES ('411625', '郸城县', '411600');
INSERT INTO `areainfo` VALUES ('411626', '淮阳县', '411600');
INSERT INTO `areainfo` VALUES ('411627', '太康县', '411600');
INSERT INTO `areainfo` VALUES ('411628', '鹿邑县', '411600');
INSERT INTO `areainfo` VALUES ('411681', '项城市', '411600');
INSERT INTO `areainfo` VALUES ('411700', '驻马店市', '410000');
INSERT INTO `areainfo` VALUES ('411701', '市辖区', '411700');
INSERT INTO `areainfo` VALUES ('411702', '驿城区', '411700');
INSERT INTO `areainfo` VALUES ('411721', '西平县', '411700');
INSERT INTO `areainfo` VALUES ('411722', '上蔡县', '411700');
INSERT INTO `areainfo` VALUES ('411723', '平舆县', '411700');
INSERT INTO `areainfo` VALUES ('411724', '正阳县', '411700');
INSERT INTO `areainfo` VALUES ('411725', '确山县', '411700');
INSERT INTO `areainfo` VALUES ('411726', '泌阳县', '411700');
INSERT INTO `areainfo` VALUES ('411727', '汝南县', '411700');
INSERT INTO `areainfo` VALUES ('411728', '遂平县', '411700');
INSERT INTO `areainfo` VALUES ('411729', '新蔡县', '411700');
INSERT INTO `areainfo` VALUES ('419000', '省直辖县级行政区划', '410000');
INSERT INTO `areainfo` VALUES ('419001', '济源市', '419000');
INSERT INTO `areainfo` VALUES ('420000', '湖北省', NULL);
INSERT INTO `areainfo` VALUES ('420100', '武汉市', '420000');
INSERT INTO `areainfo` VALUES ('420101', '市辖区', '420100');
INSERT INTO `areainfo` VALUES ('420102', '江岸区', '420100');
INSERT INTO `areainfo` VALUES ('420103', '江汉区', '420100');
INSERT INTO `areainfo` VALUES ('420104', '硚口区', '420100');
INSERT INTO `areainfo` VALUES ('420105', '汉阳区', '420100');
INSERT INTO `areainfo` VALUES ('420106', '武昌区', '420100');
INSERT INTO `areainfo` VALUES ('420107', '青山区', '420100');
INSERT INTO `areainfo` VALUES ('420111', '洪山区', '420100');
INSERT INTO `areainfo` VALUES ('420112', '东西湖区', '420100');
INSERT INTO `areainfo` VALUES ('420113', '汉南区', '420100');
INSERT INTO `areainfo` VALUES ('420114', '蔡甸区', '420100');
INSERT INTO `areainfo` VALUES ('420115', '江夏区', '420100');
INSERT INTO `areainfo` VALUES ('420116', '黄陂区', '420100');
INSERT INTO `areainfo` VALUES ('420117', '新洲区', '420100');
INSERT INTO `areainfo` VALUES ('420200', '黄石市', '420000');
INSERT INTO `areainfo` VALUES ('420201', '市辖区', '420200');
INSERT INTO `areainfo` VALUES ('420202', '黄石港区', '420200');
INSERT INTO `areainfo` VALUES ('420203', '西塞山区', '420200');
INSERT INTO `areainfo` VALUES ('420204', '下陆区', '420200');
INSERT INTO `areainfo` VALUES ('420205', '铁山区', '420200');
INSERT INTO `areainfo` VALUES ('420222', '阳新县', '420200');
INSERT INTO `areainfo` VALUES ('420281', '大冶市', '420200');
INSERT INTO `areainfo` VALUES ('420300', '十堰市', '420000');
INSERT INTO `areainfo` VALUES ('420301', '市辖区', '420300');
INSERT INTO `areainfo` VALUES ('420302', '茅箭区', '420300');
INSERT INTO `areainfo` VALUES ('420303', '张湾区', '420300');
INSERT INTO `areainfo` VALUES ('420304', '郧阳区', '420300');
INSERT INTO `areainfo` VALUES ('420322', '郧西县', '420300');
INSERT INTO `areainfo` VALUES ('420323', '竹山县', '420300');
INSERT INTO `areainfo` VALUES ('420324', '竹溪县', '420300');
INSERT INTO `areainfo` VALUES ('420325', '房县', '420300');
INSERT INTO `areainfo` VALUES ('420381', '丹江口市', '420300');
INSERT INTO `areainfo` VALUES ('420500', '宜昌市', '420000');
INSERT INTO `areainfo` VALUES ('420501', '市辖区', '420500');
INSERT INTO `areainfo` VALUES ('420502', '西陵区', '420500');
INSERT INTO `areainfo` VALUES ('420503', '伍家岗区', '420500');
INSERT INTO `areainfo` VALUES ('420504', '点军区', '420500');
INSERT INTO `areainfo` VALUES ('420505', '猇亭区', '420500');
INSERT INTO `areainfo` VALUES ('420506', '夷陵区', '420500');
INSERT INTO `areainfo` VALUES ('420525', '远安县', '420500');
INSERT INTO `areainfo` VALUES ('420526', '兴山县', '420500');
INSERT INTO `areainfo` VALUES ('420527', '秭归县', '420500');
INSERT INTO `areainfo` VALUES ('420528', '长阳土家族自治县', '420500');
INSERT INTO `areainfo` VALUES ('420529', '五峰土家族自治县', '420500');
INSERT INTO `areainfo` VALUES ('420581', '宜都市', '420500');
INSERT INTO `areainfo` VALUES ('420582', '当阳市', '420500');
INSERT INTO `areainfo` VALUES ('420583', '枝江市', '420500');
INSERT INTO `areainfo` VALUES ('420600', '襄阳市', '420000');
INSERT INTO `areainfo` VALUES ('420601', '市辖区', '420600');
INSERT INTO `areainfo` VALUES ('420602', '襄城区', '420600');
INSERT INTO `areainfo` VALUES ('420606', '樊城区', '420600');
INSERT INTO `areainfo` VALUES ('420607', '襄州区', '420600');
INSERT INTO `areainfo` VALUES ('420624', '南漳县', '420600');
INSERT INTO `areainfo` VALUES ('420625', '谷城县', '420600');
INSERT INTO `areainfo` VALUES ('420626', '保康县', '420600');
INSERT INTO `areainfo` VALUES ('420682', '老河口市', '420600');
INSERT INTO `areainfo` VALUES ('420683', '枣阳市', '420600');
INSERT INTO `areainfo` VALUES ('420684', '宜城市', '420600');
INSERT INTO `areainfo` VALUES ('420700', '鄂州市', '420000');
INSERT INTO `areainfo` VALUES ('420701', '市辖区', '420700');
INSERT INTO `areainfo` VALUES ('420702', '梁子湖区', '420700');
INSERT INTO `areainfo` VALUES ('420703', '华容区', '420700');
INSERT INTO `areainfo` VALUES ('420704', '鄂城区', '420700');
INSERT INTO `areainfo` VALUES ('420800', '荆门市', '420000');
INSERT INTO `areainfo` VALUES ('420801', '市辖区', '420800');
INSERT INTO `areainfo` VALUES ('420802', '东宝区', '420800');
INSERT INTO `areainfo` VALUES ('420804', '掇刀区', '420800');
INSERT INTO `areainfo` VALUES ('420821', '京山县', '420800');
INSERT INTO `areainfo` VALUES ('420822', '沙洋县', '420800');
INSERT INTO `areainfo` VALUES ('420881', '钟祥市', '420800');
INSERT INTO `areainfo` VALUES ('420900', '孝感市', '420000');
INSERT INTO `areainfo` VALUES ('420901', '市辖区', '420900');
INSERT INTO `areainfo` VALUES ('420902', '孝南区', '420900');
INSERT INTO `areainfo` VALUES ('420921', '孝昌县', '420900');
INSERT INTO `areainfo` VALUES ('420922', '大悟县', '420900');
INSERT INTO `areainfo` VALUES ('420923', '云梦县', '420900');
INSERT INTO `areainfo` VALUES ('420981', '应城市', '420900');
INSERT INTO `areainfo` VALUES ('420982', '安陆市', '420900');
INSERT INTO `areainfo` VALUES ('420984', '汉川市', '420900');
INSERT INTO `areainfo` VALUES ('421000', '荆州市', '420000');
INSERT INTO `areainfo` VALUES ('421001', '市辖区', '421000');
INSERT INTO `areainfo` VALUES ('421002', '沙市区', '421000');
INSERT INTO `areainfo` VALUES ('421003', '荆州区', '421000');
INSERT INTO `areainfo` VALUES ('421022', '公安县', '421000');
INSERT INTO `areainfo` VALUES ('421023', '监利县', '421000');
INSERT INTO `areainfo` VALUES ('421024', '江陵县', '421000');
INSERT INTO `areainfo` VALUES ('421081', '石首市', '421000');
INSERT INTO `areainfo` VALUES ('421083', '洪湖市', '421000');
INSERT INTO `areainfo` VALUES ('421087', '松滋市', '421000');
INSERT INTO `areainfo` VALUES ('421100', '黄冈市', '420000');
INSERT INTO `areainfo` VALUES ('421101', '市辖区', '421100');
INSERT INTO `areainfo` VALUES ('421102', '黄州区', '421100');
INSERT INTO `areainfo` VALUES ('421121', '团风县', '421100');
INSERT INTO `areainfo` VALUES ('421122', '红安县', '421100');
INSERT INTO `areainfo` VALUES ('421123', '罗田县', '421100');
INSERT INTO `areainfo` VALUES ('421124', '英山县', '421100');
INSERT INTO `areainfo` VALUES ('421125', '浠水县', '421100');
INSERT INTO `areainfo` VALUES ('421126', '蕲春县', '421100');
INSERT INTO `areainfo` VALUES ('421127', '黄梅县', '421100');
INSERT INTO `areainfo` VALUES ('421181', '麻城市', '421100');
INSERT INTO `areainfo` VALUES ('421182', '武穴市', '421100');
INSERT INTO `areainfo` VALUES ('421200', '咸宁市', '420000');
INSERT INTO `areainfo` VALUES ('421201', '市辖区', '421200');
INSERT INTO `areainfo` VALUES ('421202', '咸安区', '421200');
INSERT INTO `areainfo` VALUES ('421221', '嘉鱼县', '421200');
INSERT INTO `areainfo` VALUES ('421222', '通城县', '421200');
INSERT INTO `areainfo` VALUES ('421223', '崇阳县', '421200');
INSERT INTO `areainfo` VALUES ('421224', '通山县', '421200');
INSERT INTO `areainfo` VALUES ('421281', '赤壁市', '421200');
INSERT INTO `areainfo` VALUES ('421300', '随州市', '420000');
INSERT INTO `areainfo` VALUES ('421301', '市辖区', '421300');
INSERT INTO `areainfo` VALUES ('421303', '曾都区', '421300');
INSERT INTO `areainfo` VALUES ('421321', '随县', '421300');
INSERT INTO `areainfo` VALUES ('421381', '广水市', '421300');
INSERT INTO `areainfo` VALUES ('422800', '恩施土家族苗族自治州', '420000');
INSERT INTO `areainfo` VALUES ('422801', '恩施市', '422800');
INSERT INTO `areainfo` VALUES ('422802', '利川市', '422800');
INSERT INTO `areainfo` VALUES ('422822', '建始县', '422800');
INSERT INTO `areainfo` VALUES ('422823', '巴东县', '422800');
INSERT INTO `areainfo` VALUES ('422825', '宣恩县', '422800');
INSERT INTO `areainfo` VALUES ('422826', '咸丰县', '422800');
INSERT INTO `areainfo` VALUES ('422827', '来凤县', '422800');
INSERT INTO `areainfo` VALUES ('422828', '鹤峰县', '422800');
INSERT INTO `areainfo` VALUES ('429000', '省直辖县级行政区划', '420000');
INSERT INTO `areainfo` VALUES ('429004', '仙桃市', '429000');
INSERT INTO `areainfo` VALUES ('429005', '潜江市', '429000');
INSERT INTO `areainfo` VALUES ('429006', '天门市', '429000');
INSERT INTO `areainfo` VALUES ('429021', '神农架林区', '429000');
INSERT INTO `areainfo` VALUES ('430000', '湖南省', NULL);
INSERT INTO `areainfo` VALUES ('430100', '长沙市', '430000');
INSERT INTO `areainfo` VALUES ('430101', '市辖区', '430100');
INSERT INTO `areainfo` VALUES ('430102', '芙蓉区', '430100');
INSERT INTO `areainfo` VALUES ('430103', '天心区', '430100');
INSERT INTO `areainfo` VALUES ('430104', '岳麓区', '430100');
INSERT INTO `areainfo` VALUES ('430105', '开福区', '430100');
INSERT INTO `areainfo` VALUES ('430111', '雨花区', '430100');
INSERT INTO `areainfo` VALUES ('430112', '望城区', '430100');
INSERT INTO `areainfo` VALUES ('430121', '长沙县', '430100');
INSERT INTO `areainfo` VALUES ('430124', '宁乡县', '430100');
INSERT INTO `areainfo` VALUES ('430181', '浏阳市', '430100');
INSERT INTO `areainfo` VALUES ('430200', '株洲市', '430000');
INSERT INTO `areainfo` VALUES ('430201', '市辖区', '430200');
INSERT INTO `areainfo` VALUES ('430202', '荷塘区', '430200');
INSERT INTO `areainfo` VALUES ('430203', '芦淞区', '430200');
INSERT INTO `areainfo` VALUES ('430204', '石峰区', '430200');
INSERT INTO `areainfo` VALUES ('430211', '天元区', '430200');
INSERT INTO `areainfo` VALUES ('430221', '株洲县', '430200');
INSERT INTO `areainfo` VALUES ('430223', '攸县', '430200');
INSERT INTO `areainfo` VALUES ('430224', '茶陵县', '430200');
INSERT INTO `areainfo` VALUES ('430225', '炎陵县', '430200');
INSERT INTO `areainfo` VALUES ('430281', '醴陵市', '430200');
INSERT INTO `areainfo` VALUES ('430300', '湘潭市', '430000');
INSERT INTO `areainfo` VALUES ('430301', '市辖区', '430300');
INSERT INTO `areainfo` VALUES ('430302', '雨湖区', '430300');
INSERT INTO `areainfo` VALUES ('430304', '岳塘区', '430300');
INSERT INTO `areainfo` VALUES ('430321', '湘潭县', '430300');
INSERT INTO `areainfo` VALUES ('430381', '湘乡市', '430300');
INSERT INTO `areainfo` VALUES ('430382', '韶山市', '430300');
INSERT INTO `areainfo` VALUES ('430400', '衡阳市', '430000');
INSERT INTO `areainfo` VALUES ('430401', '市辖区', '430400');
INSERT INTO `areainfo` VALUES ('430405', '珠晖区', '430400');
INSERT INTO `areainfo` VALUES ('430406', '雁峰区', '430400');
INSERT INTO `areainfo` VALUES ('430407', '石鼓区', '430400');
INSERT INTO `areainfo` VALUES ('430408', '蒸湘区', '430400');
INSERT INTO `areainfo` VALUES ('430412', '南岳区', '430400');
INSERT INTO `areainfo` VALUES ('430421', '衡阳县', '430400');
INSERT INTO `areainfo` VALUES ('430422', '衡南县', '430400');
INSERT INTO `areainfo` VALUES ('430423', '衡山县', '430400');
INSERT INTO `areainfo` VALUES ('430424', '衡东县', '430400');
INSERT INTO `areainfo` VALUES ('430426', '祁东县', '430400');
INSERT INTO `areainfo` VALUES ('430481', '耒阳市', '430400');
INSERT INTO `areainfo` VALUES ('430482', '常宁市', '430400');
INSERT INTO `areainfo` VALUES ('430500', '邵阳市', '430000');
INSERT INTO `areainfo` VALUES ('430501', '市辖区', '430500');
INSERT INTO `areainfo` VALUES ('430502', '双清区', '430500');
INSERT INTO `areainfo` VALUES ('430503', '大祥区', '430500');
INSERT INTO `areainfo` VALUES ('430511', '北塔区', '430500');
INSERT INTO `areainfo` VALUES ('430521', '邵东县', '430500');
INSERT INTO `areainfo` VALUES ('430522', '新邵县', '430500');
INSERT INTO `areainfo` VALUES ('430523', '邵阳县', '430500');
INSERT INTO `areainfo` VALUES ('430524', '隆回县', '430500');
INSERT INTO `areainfo` VALUES ('430525', '洞口县', '430500');
INSERT INTO `areainfo` VALUES ('430527', '绥宁县', '430500');
INSERT INTO `areainfo` VALUES ('430528', '新宁县', '430500');
INSERT INTO `areainfo` VALUES ('430529', '城步苗族自治县', '430500');
INSERT INTO `areainfo` VALUES ('430581', '武冈市', '430500');
INSERT INTO `areainfo` VALUES ('430600', '岳阳市', '430000');
INSERT INTO `areainfo` VALUES ('430601', '市辖区', '430600');
INSERT INTO `areainfo` VALUES ('430602', '岳阳楼区', '430600');
INSERT INTO `areainfo` VALUES ('430603', '云溪区', '430600');
INSERT INTO `areainfo` VALUES ('430611', '君山区', '430600');
INSERT INTO `areainfo` VALUES ('430621', '岳阳县', '430600');
INSERT INTO `areainfo` VALUES ('430623', '华容县', '430600');
INSERT INTO `areainfo` VALUES ('430624', '湘阴县', '430600');
INSERT INTO `areainfo` VALUES ('430626', '平江县', '430600');
INSERT INTO `areainfo` VALUES ('430681', '汨罗市', '430600');
INSERT INTO `areainfo` VALUES ('430682', '临湘市', '430600');
INSERT INTO `areainfo` VALUES ('430700', '常德市', '430000');
INSERT INTO `areainfo` VALUES ('430701', '市辖区', '430700');
INSERT INTO `areainfo` VALUES ('430702', '武陵区', '430700');
INSERT INTO `areainfo` VALUES ('430703', '鼎城区', '430700');
INSERT INTO `areainfo` VALUES ('430721', '安乡县', '430700');
INSERT INTO `areainfo` VALUES ('430722', '汉寿县', '430700');
INSERT INTO `areainfo` VALUES ('430723', '澧县', '430700');
INSERT INTO `areainfo` VALUES ('430724', '临澧县', '430700');
INSERT INTO `areainfo` VALUES ('430725', '桃源县', '430700');
INSERT INTO `areainfo` VALUES ('430726', '石门县', '430700');
INSERT INTO `areainfo` VALUES ('430781', '津市市', '430700');
INSERT INTO `areainfo` VALUES ('430800', '张家界市', '430000');
INSERT INTO `areainfo` VALUES ('430801', '市辖区', '430800');
INSERT INTO `areainfo` VALUES ('430802', '永定区', '430800');
INSERT INTO `areainfo` VALUES ('430811', '武陵源区', '430800');
INSERT INTO `areainfo` VALUES ('430821', '慈利县', '430800');
INSERT INTO `areainfo` VALUES ('430822', '桑植县', '430800');
INSERT INTO `areainfo` VALUES ('430900', '益阳市', '430000');
INSERT INTO `areainfo` VALUES ('430901', '市辖区', '430900');
INSERT INTO `areainfo` VALUES ('430902', '资阳区', '430900');
INSERT INTO `areainfo` VALUES ('430903', '赫山区', '430900');
INSERT INTO `areainfo` VALUES ('430921', '南县', '430900');
INSERT INTO `areainfo` VALUES ('430922', '桃江县', '430900');
INSERT INTO `areainfo` VALUES ('430923', '安化县', '430900');
INSERT INTO `areainfo` VALUES ('430981', '沅江市', '430900');
INSERT INTO `areainfo` VALUES ('431000', '郴州市', '430000');
INSERT INTO `areainfo` VALUES ('431001', '市辖区', '431000');
INSERT INTO `areainfo` VALUES ('431002', '北湖区', '431000');
INSERT INTO `areainfo` VALUES ('431003', '苏仙区', '431000');
INSERT INTO `areainfo` VALUES ('431021', '桂阳县', '431000');
INSERT INTO `areainfo` VALUES ('431022', '宜章县', '431000');
INSERT INTO `areainfo` VALUES ('431023', '永兴县', '431000');
INSERT INTO `areainfo` VALUES ('431024', '嘉禾县', '431000');
INSERT INTO `areainfo` VALUES ('431025', '临武县', '431000');
INSERT INTO `areainfo` VALUES ('431026', '汝城县', '431000');
INSERT INTO `areainfo` VALUES ('431027', '桂东县', '431000');
INSERT INTO `areainfo` VALUES ('431028', '安仁县', '431000');
INSERT INTO `areainfo` VALUES ('431081', '资兴市', '431000');
INSERT INTO `areainfo` VALUES ('431100', '永州市', '430000');
INSERT INTO `areainfo` VALUES ('431101', '市辖区', '431100');
INSERT INTO `areainfo` VALUES ('431102', '零陵区', '431100');
INSERT INTO `areainfo` VALUES ('431103', '冷水滩区', '431100');
INSERT INTO `areainfo` VALUES ('431121', '祁阳县', '431100');
INSERT INTO `areainfo` VALUES ('431122', '东安县', '431100');
INSERT INTO `areainfo` VALUES ('431123', '双牌县', '431100');
INSERT INTO `areainfo` VALUES ('431124', '道县', '431100');
INSERT INTO `areainfo` VALUES ('431125', '江永县', '431100');
INSERT INTO `areainfo` VALUES ('431126', '宁远县', '431100');
INSERT INTO `areainfo` VALUES ('431127', '蓝山县', '431100');
INSERT INTO `areainfo` VALUES ('431128', '新田县', '431100');
INSERT INTO `areainfo` VALUES ('431129', '江华瑶族自治县', '431100');
INSERT INTO `areainfo` VALUES ('431200', '怀化市', '430000');
INSERT INTO `areainfo` VALUES ('431201', '市辖区', '431200');
INSERT INTO `areainfo` VALUES ('431202', '鹤城区', '431200');
INSERT INTO `areainfo` VALUES ('431221', '中方县', '431200');
INSERT INTO `areainfo` VALUES ('431222', '沅陵县', '431200');
INSERT INTO `areainfo` VALUES ('431223', '辰溪县', '431200');
INSERT INTO `areainfo` VALUES ('431224', '溆浦县', '431200');
INSERT INTO `areainfo` VALUES ('431225', '会同县', '431200');
INSERT INTO `areainfo` VALUES ('431226', '麻阳苗族自治县', '431200');
INSERT INTO `areainfo` VALUES ('431227', '新晃侗族自治县', '431200');
INSERT INTO `areainfo` VALUES ('431228', '芷江侗族自治县', '431200');
INSERT INTO `areainfo` VALUES ('431229', '靖州苗族侗族自治县', '431200');
INSERT INTO `areainfo` VALUES ('431230', '通道侗族自治县', '431200');
INSERT INTO `areainfo` VALUES ('431281', '洪江市', '431200');
INSERT INTO `areainfo` VALUES ('431300', '娄底市', '430000');
INSERT INTO `areainfo` VALUES ('431301', '市辖区', '431300');
INSERT INTO `areainfo` VALUES ('431302', '娄星区', '431300');
INSERT INTO `areainfo` VALUES ('431321', '双峰县', '431300');
INSERT INTO `areainfo` VALUES ('431322', '新化县', '431300');
INSERT INTO `areainfo` VALUES ('431381', '冷水江市', '431300');
INSERT INTO `areainfo` VALUES ('431382', '涟源市', '431300');
INSERT INTO `areainfo` VALUES ('433100', '湘西土家族苗族自治州', '430000');
INSERT INTO `areainfo` VALUES ('433101', '吉首市', '433100');
INSERT INTO `areainfo` VALUES ('433122', '泸溪县', '433100');
INSERT INTO `areainfo` VALUES ('433123', '凤凰县', '433100');
INSERT INTO `areainfo` VALUES ('433124', '花垣县', '433100');
INSERT INTO `areainfo` VALUES ('433125', '保靖县', '433100');
INSERT INTO `areainfo` VALUES ('433126', '古丈县', '433100');
INSERT INTO `areainfo` VALUES ('433127', '永顺县', '433100');
INSERT INTO `areainfo` VALUES ('433130', '龙山县', '433100');
INSERT INTO `areainfo` VALUES ('440000', '广东省', NULL);
INSERT INTO `areainfo` VALUES ('440100', '广州市', '440000');
INSERT INTO `areainfo` VALUES ('440101', '市辖区', '440100');
INSERT INTO `areainfo` VALUES ('440103', '荔湾区', '440100');
INSERT INTO `areainfo` VALUES ('440104', '越秀区', '440100');
INSERT INTO `areainfo` VALUES ('440105', '海珠区', '440100');
INSERT INTO `areainfo` VALUES ('440106', '天河区', '440100');
INSERT INTO `areainfo` VALUES ('440111', '白云区', '440100');
INSERT INTO `areainfo` VALUES ('440112', '黄埔区', '440100');
INSERT INTO `areainfo` VALUES ('440113', '番禺区', '440100');
INSERT INTO `areainfo` VALUES ('440114', '花都区', '440100');
INSERT INTO `areainfo` VALUES ('440115', '南沙区', '440100');
INSERT INTO `areainfo` VALUES ('440117', '从化区', '440100');
INSERT INTO `areainfo` VALUES ('440118', '增城区', '440100');
INSERT INTO `areainfo` VALUES ('440200', '韶关市', '440000');
INSERT INTO `areainfo` VALUES ('440201', '市辖区', '440200');
INSERT INTO `areainfo` VALUES ('440203', '武江区', '440200');
INSERT INTO `areainfo` VALUES ('440204', '浈江区', '440200');
INSERT INTO `areainfo` VALUES ('440205', '曲江区', '440200');
INSERT INTO `areainfo` VALUES ('440222', '始兴县', '440200');
INSERT INTO `areainfo` VALUES ('440224', '仁化县', '440200');
INSERT INTO `areainfo` VALUES ('440229', '翁源县', '440200');
INSERT INTO `areainfo` VALUES ('440232', '乳源瑶族自治县', '440200');
INSERT INTO `areainfo` VALUES ('440233', '新丰县', '440200');
INSERT INTO `areainfo` VALUES ('440281', '乐昌市', '440200');
INSERT INTO `areainfo` VALUES ('440282', '南雄市', '440200');
INSERT INTO `areainfo` VALUES ('440300', '深圳市', '440000');
INSERT INTO `areainfo` VALUES ('440301', '市辖区', '440300');
INSERT INTO `areainfo` VALUES ('440303', '罗湖区', '440300');
INSERT INTO `areainfo` VALUES ('440304', '福田区', '440300');
INSERT INTO `areainfo` VALUES ('440305', '南山区', '440300');
INSERT INTO `areainfo` VALUES ('440306', '宝安区', '440300');
INSERT INTO `areainfo` VALUES ('440307', '龙岗区', '440300');
INSERT INTO `areainfo` VALUES ('440308', '盐田区', '440300');
INSERT INTO `areainfo` VALUES ('440400', '珠海市', '440000');
INSERT INTO `areainfo` VALUES ('440401', '市辖区', '440400');
INSERT INTO `areainfo` VALUES ('440402', '香洲区', '440400');
INSERT INTO `areainfo` VALUES ('440403', '斗门区', '440400');
INSERT INTO `areainfo` VALUES ('440404', '金湾区', '440400');
INSERT INTO `areainfo` VALUES ('440500', '汕头市', '440000');
INSERT INTO `areainfo` VALUES ('440501', '市辖区', '440500');
INSERT INTO `areainfo` VALUES ('440507', '龙湖区', '440500');
INSERT INTO `areainfo` VALUES ('440511', '金平区', '440500');
INSERT INTO `areainfo` VALUES ('440512', '濠江区', '440500');
INSERT INTO `areainfo` VALUES ('440513', '潮阳区', '440500');
INSERT INTO `areainfo` VALUES ('440514', '潮南区', '440500');
INSERT INTO `areainfo` VALUES ('440515', '澄海区', '440500');
INSERT INTO `areainfo` VALUES ('440523', '南澳县', '440500');
INSERT INTO `areainfo` VALUES ('440600', '佛山市', '440000');
INSERT INTO `areainfo` VALUES ('440601', '市辖区', '440600');
INSERT INTO `areainfo` VALUES ('440604', '禅城区', '440600');
INSERT INTO `areainfo` VALUES ('440605', '南海区', '440600');
INSERT INTO `areainfo` VALUES ('440606', '顺德区', '440600');
INSERT INTO `areainfo` VALUES ('440607', '三水区', '440600');
INSERT INTO `areainfo` VALUES ('440608', '高明区', '440600');
INSERT INTO `areainfo` VALUES ('440700', '江门市', '440000');
INSERT INTO `areainfo` VALUES ('440701', '市辖区', '440700');
INSERT INTO `areainfo` VALUES ('440703', '蓬江区', '440700');
INSERT INTO `areainfo` VALUES ('440704', '江海区', '440700');
INSERT INTO `areainfo` VALUES ('440705', '新会区', '440700');
INSERT INTO `areainfo` VALUES ('440781', '台山市', '440700');
INSERT INTO `areainfo` VALUES ('440783', '开平市', '440700');
INSERT INTO `areainfo` VALUES ('440784', '鹤山市', '440700');
INSERT INTO `areainfo` VALUES ('440785', '恩平市', '440700');
INSERT INTO `areainfo` VALUES ('440800', '湛江市', '440000');
INSERT INTO `areainfo` VALUES ('440801', '市辖区', '440800');
INSERT INTO `areainfo` VALUES ('440802', '赤坎区', '440800');
INSERT INTO `areainfo` VALUES ('440803', '霞山区', '440800');
INSERT INTO `areainfo` VALUES ('440804', '坡头区', '440800');
INSERT INTO `areainfo` VALUES ('440811', '麻章区', '440800');
INSERT INTO `areainfo` VALUES ('440823', '遂溪县', '440800');
INSERT INTO `areainfo` VALUES ('440825', '徐闻县', '440800');
INSERT INTO `areainfo` VALUES ('440881', '廉江市', '440800');
INSERT INTO `areainfo` VALUES ('440882', '雷州市', '440800');
INSERT INTO `areainfo` VALUES ('440883', '吴川市', '440800');
INSERT INTO `areainfo` VALUES ('440900', '茂名市', '440000');
INSERT INTO `areainfo` VALUES ('440901', '市辖区', '440900');
INSERT INTO `areainfo` VALUES ('440902', '茂南区', '440900');
INSERT INTO `areainfo` VALUES ('440904', '电白区', '440900');
INSERT INTO `areainfo` VALUES ('440981', '高州市', '440900');
INSERT INTO `areainfo` VALUES ('440982', '化州市', '440900');
INSERT INTO `areainfo` VALUES ('440983', '信宜市', '440900');
INSERT INTO `areainfo` VALUES ('441200', '肇庆市', '440000');
INSERT INTO `areainfo` VALUES ('441201', '市辖区', '441200');
INSERT INTO `areainfo` VALUES ('441202', '端州区', '441200');
INSERT INTO `areainfo` VALUES ('441203', '鼎湖区', '441200');
INSERT INTO `areainfo` VALUES ('441204', '高要区', '441200');
INSERT INTO `areainfo` VALUES ('441223', '广宁县', '441200');
INSERT INTO `areainfo` VALUES ('441224', '怀集县', '441200');
INSERT INTO `areainfo` VALUES ('441225', '封开县', '441200');
INSERT INTO `areainfo` VALUES ('441226', '德庆县', '441200');
INSERT INTO `areainfo` VALUES ('441284', '四会市', '441200');
INSERT INTO `areainfo` VALUES ('441300', '惠州市', '440000');
INSERT INTO `areainfo` VALUES ('441301', '市辖区', '441300');
INSERT INTO `areainfo` VALUES ('441302', '惠城区', '441300');
INSERT INTO `areainfo` VALUES ('441303', '惠阳区', '441300');
INSERT INTO `areainfo` VALUES ('441322', '博罗县', '441300');
INSERT INTO `areainfo` VALUES ('441323', '惠东县', '441300');
INSERT INTO `areainfo` VALUES ('441324', '龙门县', '441300');
INSERT INTO `areainfo` VALUES ('441400', '梅州市', '440000');
INSERT INTO `areainfo` VALUES ('441401', '市辖区', '441400');
INSERT INTO `areainfo` VALUES ('441402', '梅江区', '441400');
INSERT INTO `areainfo` VALUES ('441403', '梅县区', '441400');
INSERT INTO `areainfo` VALUES ('441422', '大埔县', '441400');
INSERT INTO `areainfo` VALUES ('441423', '丰顺县', '441400');
INSERT INTO `areainfo` VALUES ('441424', '五华县', '441400');
INSERT INTO `areainfo` VALUES ('441426', '平远县', '441400');
INSERT INTO `areainfo` VALUES ('441427', '蕉岭县', '441400');
INSERT INTO `areainfo` VALUES ('441481', '兴宁市', '441400');
INSERT INTO `areainfo` VALUES ('441500', '汕尾市', '440000');
INSERT INTO `areainfo` VALUES ('441501', '市辖区', '441500');
INSERT INTO `areainfo` VALUES ('441502', '城区', '441500');
INSERT INTO `areainfo` VALUES ('441521', '海丰县', '441500');
INSERT INTO `areainfo` VALUES ('441523', '陆河县', '441500');
INSERT INTO `areainfo` VALUES ('441581', '陆丰市', '441500');
INSERT INTO `areainfo` VALUES ('441600', '河源市', '440000');
INSERT INTO `areainfo` VALUES ('441601', '市辖区', '441600');
INSERT INTO `areainfo` VALUES ('441602', '源城区', '441600');
INSERT INTO `areainfo` VALUES ('441621', '紫金县', '441600');
INSERT INTO `areainfo` VALUES ('441622', '龙川县', '441600');
INSERT INTO `areainfo` VALUES ('441623', '连平县', '441600');
INSERT INTO `areainfo` VALUES ('441624', '和平县', '441600');
INSERT INTO `areainfo` VALUES ('441625', '东源县', '441600');
INSERT INTO `areainfo` VALUES ('441700', '阳江市', '440000');
INSERT INTO `areainfo` VALUES ('441701', '市辖区', '441700');
INSERT INTO `areainfo` VALUES ('441702', '江城区', '441700');
INSERT INTO `areainfo` VALUES ('441704', '阳东区', '441700');
INSERT INTO `areainfo` VALUES ('441721', '阳西县', '441700');
INSERT INTO `areainfo` VALUES ('441781', '阳春市', '441700');
INSERT INTO `areainfo` VALUES ('441800', '清远市', '440000');
INSERT INTO `areainfo` VALUES ('441801', '市辖区', '441800');
INSERT INTO `areainfo` VALUES ('441802', '清城区', '441800');
INSERT INTO `areainfo` VALUES ('441803', '清新区', '441800');
INSERT INTO `areainfo` VALUES ('441821', '佛冈县', '441800');
INSERT INTO `areainfo` VALUES ('441823', '阳山县', '441800');
INSERT INTO `areainfo` VALUES ('441825', '连山壮族瑶族自治县', '441800');
INSERT INTO `areainfo` VALUES ('441826', '连南瑶族自治县', '441800');
INSERT INTO `areainfo` VALUES ('441881', '英德市', '441800');
INSERT INTO `areainfo` VALUES ('441882', '连州市', '441800');
INSERT INTO `areainfo` VALUES ('441900', '东莞市', '440000');
INSERT INTO `areainfo` VALUES ('442000', '中山市', '440000');
INSERT INTO `areainfo` VALUES ('445100', '潮州市', '440000');
INSERT INTO `areainfo` VALUES ('445101', '市辖区', '445100');
INSERT INTO `areainfo` VALUES ('445102', '湘桥区', '445100');
INSERT INTO `areainfo` VALUES ('445103', '潮安区', '445100');
INSERT INTO `areainfo` VALUES ('445122', '饶平县', '445100');
INSERT INTO `areainfo` VALUES ('445200', '揭阳市', '440000');
INSERT INTO `areainfo` VALUES ('445201', '市辖区', '445200');
INSERT INTO `areainfo` VALUES ('445202', '榕城区', '445200');
INSERT INTO `areainfo` VALUES ('445203', '揭东区', '445200');
INSERT INTO `areainfo` VALUES ('445222', '揭西县', '445200');
INSERT INTO `areainfo` VALUES ('445224', '惠来县', '445200');
INSERT INTO `areainfo` VALUES ('445281', '普宁市', '445200');
INSERT INTO `areainfo` VALUES ('445300', '云浮市', '440000');
INSERT INTO `areainfo` VALUES ('445301', '市辖区', '445300');
INSERT INTO `areainfo` VALUES ('445302', '云城区', '445300');
INSERT INTO `areainfo` VALUES ('445303', '云安区', '445300');
INSERT INTO `areainfo` VALUES ('445321', '新兴县', '445300');
INSERT INTO `areainfo` VALUES ('445322', '郁南县', '445300');
INSERT INTO `areainfo` VALUES ('445381', '罗定市', '445300');
INSERT INTO `areainfo` VALUES ('450000', '广西壮族自治区', NULL);
INSERT INTO `areainfo` VALUES ('450100', '南宁市', '450000');
INSERT INTO `areainfo` VALUES ('450101', '市辖区', '450100');
INSERT INTO `areainfo` VALUES ('450102', '兴宁区', '450100');
INSERT INTO `areainfo` VALUES ('450103', '青秀区', '450100');
INSERT INTO `areainfo` VALUES ('450105', '江南区', '450100');
INSERT INTO `areainfo` VALUES ('450107', '西乡塘区', '450100');
INSERT INTO `areainfo` VALUES ('450108', '良庆区', '450100');
INSERT INTO `areainfo` VALUES ('450109', '邕宁区', '450100');
INSERT INTO `areainfo` VALUES ('450110', '武鸣区', '450100');
INSERT INTO `areainfo` VALUES ('450123', '隆安县', '450100');
INSERT INTO `areainfo` VALUES ('450124', '马山县', '450100');
INSERT INTO `areainfo` VALUES ('450125', '上林县', '450100');
INSERT INTO `areainfo` VALUES ('450126', '宾阳县', '450100');
INSERT INTO `areainfo` VALUES ('450127', '横县', '450100');
INSERT INTO `areainfo` VALUES ('450200', '柳州市', '450000');
INSERT INTO `areainfo` VALUES ('450201', '市辖区', '450200');
INSERT INTO `areainfo` VALUES ('450202', '城中区', '450200');
INSERT INTO `areainfo` VALUES ('450203', '鱼峰区', '450200');
INSERT INTO `areainfo` VALUES ('450204', '柳南区', '450200');
INSERT INTO `areainfo` VALUES ('450205', '柳北区', '450200');
INSERT INTO `areainfo` VALUES ('450206', '柳江区', '450200');
INSERT INTO `areainfo` VALUES ('450222', '柳城县', '450200');
INSERT INTO `areainfo` VALUES ('450223', '鹿寨县', '450200');
INSERT INTO `areainfo` VALUES ('450224', '融安县', '450200');
INSERT INTO `areainfo` VALUES ('450225', '融水苗族自治县', '450200');
INSERT INTO `areainfo` VALUES ('450226', '三江侗族自治县', '450200');
INSERT INTO `areainfo` VALUES ('450300', '桂林市', '450000');
INSERT INTO `areainfo` VALUES ('450301', '市辖区', '450300');
INSERT INTO `areainfo` VALUES ('450302', '秀峰区', '450300');
INSERT INTO `areainfo` VALUES ('450303', '叠彩区', '450300');
INSERT INTO `areainfo` VALUES ('450304', '象山区', '450300');
INSERT INTO `areainfo` VALUES ('450305', '七星区', '450300');
INSERT INTO `areainfo` VALUES ('450311', '雁山区', '450300');
INSERT INTO `areainfo` VALUES ('450312', '临桂区', '450300');
INSERT INTO `areainfo` VALUES ('450321', '阳朔县', '450300');
INSERT INTO `areainfo` VALUES ('450323', '灵川县', '450300');
INSERT INTO `areainfo` VALUES ('450324', '全州县', '450300');
INSERT INTO `areainfo` VALUES ('450325', '兴安县', '450300');
INSERT INTO `areainfo` VALUES ('450326', '永福县', '450300');
INSERT INTO `areainfo` VALUES ('450327', '灌阳县', '450300');
INSERT INTO `areainfo` VALUES ('450328', '龙胜各族自治县', '450300');
INSERT INTO `areainfo` VALUES ('450329', '资源县', '450300');
INSERT INTO `areainfo` VALUES ('450330', '平乐县', '450300');
INSERT INTO `areainfo` VALUES ('450331', '荔浦县', '450300');
INSERT INTO `areainfo` VALUES ('450332', '恭城瑶族自治县', '450300');
INSERT INTO `areainfo` VALUES ('450400', '梧州市', '450000');
INSERT INTO `areainfo` VALUES ('450401', '市辖区', '450400');
INSERT INTO `areainfo` VALUES ('450403', '万秀区', '450400');
INSERT INTO `areainfo` VALUES ('450405', '长洲区', '450400');
INSERT INTO `areainfo` VALUES ('450406', '龙圩区', '450400');
INSERT INTO `areainfo` VALUES ('450421', '苍梧县', '450400');
INSERT INTO `areainfo` VALUES ('450422', '藤县', '450400');
INSERT INTO `areainfo` VALUES ('450423', '蒙山县', '450400');
INSERT INTO `areainfo` VALUES ('450481', '岑溪市', '450400');
INSERT INTO `areainfo` VALUES ('450500', '北海市', '450000');
INSERT INTO `areainfo` VALUES ('450501', '市辖区', '450500');
INSERT INTO `areainfo` VALUES ('450502', '海城区', '450500');
INSERT INTO `areainfo` VALUES ('450503', '银海区', '450500');
INSERT INTO `areainfo` VALUES ('450512', '铁山港区', '450500');
INSERT INTO `areainfo` VALUES ('450521', '合浦县', '450500');
INSERT INTO `areainfo` VALUES ('450600', '防城港市', '450000');
INSERT INTO `areainfo` VALUES ('450601', '市辖区', '450600');
INSERT INTO `areainfo` VALUES ('450602', '港口区', '450600');
INSERT INTO `areainfo` VALUES ('450603', '防城区', '450600');
INSERT INTO `areainfo` VALUES ('450621', '上思县', '450600');
INSERT INTO `areainfo` VALUES ('450681', '东兴市', '450600');
INSERT INTO `areainfo` VALUES ('450700', '钦州市', '450000');
INSERT INTO `areainfo` VALUES ('450701', '市辖区', '450700');
INSERT INTO `areainfo` VALUES ('450702', '钦南区', '450700');
INSERT INTO `areainfo` VALUES ('450703', '钦北区', '450700');
INSERT INTO `areainfo` VALUES ('450721', '灵山县', '450700');
INSERT INTO `areainfo` VALUES ('450722', '浦北县', '450700');
INSERT INTO `areainfo` VALUES ('450800', '贵港市', '450000');
INSERT INTO `areainfo` VALUES ('450801', '市辖区', '450800');
INSERT INTO `areainfo` VALUES ('450802', '港北区', '450800');
INSERT INTO `areainfo` VALUES ('450803', '港南区', '450800');
INSERT INTO `areainfo` VALUES ('450804', '覃塘区', '450800');
INSERT INTO `areainfo` VALUES ('450821', '平南县', '450800');
INSERT INTO `areainfo` VALUES ('450881', '桂平市', '450800');
INSERT INTO `areainfo` VALUES ('450900', '玉林市', '450000');
INSERT INTO `areainfo` VALUES ('450901', '市辖区', '450900');
INSERT INTO `areainfo` VALUES ('450902', '玉州区', '450900');
INSERT INTO `areainfo` VALUES ('450903', '福绵区', '450900');
INSERT INTO `areainfo` VALUES ('450921', '容县', '450900');
INSERT INTO `areainfo` VALUES ('450922', '陆川县', '450900');
INSERT INTO `areainfo` VALUES ('450923', '博白县', '450900');
INSERT INTO `areainfo` VALUES ('450924', '兴业县', '450900');
INSERT INTO `areainfo` VALUES ('450981', '北流市', '450900');
INSERT INTO `areainfo` VALUES ('451000', '百色市', '450000');
INSERT INTO `areainfo` VALUES ('451001', '市辖区', '451000');
INSERT INTO `areainfo` VALUES ('451002', '右江区', '451000');
INSERT INTO `areainfo` VALUES ('451021', '田阳县', '451000');
INSERT INTO `areainfo` VALUES ('451022', '田东县', '451000');
INSERT INTO `areainfo` VALUES ('451023', '平果县', '451000');
INSERT INTO `areainfo` VALUES ('451024', '德保县', '451000');
INSERT INTO `areainfo` VALUES ('451026', '那坡县', '451000');
INSERT INTO `areainfo` VALUES ('451027', '凌云县', '451000');
INSERT INTO `areainfo` VALUES ('451028', '乐业县', '451000');
INSERT INTO `areainfo` VALUES ('451029', '田林县', '451000');
INSERT INTO `areainfo` VALUES ('451030', '西林县', '451000');
INSERT INTO `areainfo` VALUES ('451031', '隆林各族自治县', '451000');
INSERT INTO `areainfo` VALUES ('451081', '靖西市', '451000');
INSERT INTO `areainfo` VALUES ('451100', '贺州市', '450000');
INSERT INTO `areainfo` VALUES ('451101', '市辖区', '451100');
INSERT INTO `areainfo` VALUES ('451102', '八步区', '451100');
INSERT INTO `areainfo` VALUES ('451103', '平桂区', '451100');
INSERT INTO `areainfo` VALUES ('451121', '昭平县', '451100');
INSERT INTO `areainfo` VALUES ('451122', '钟山县', '451100');
INSERT INTO `areainfo` VALUES ('451123', '富川瑶族自治县', '451100');
INSERT INTO `areainfo` VALUES ('451200', '河池市', '450000');
INSERT INTO `areainfo` VALUES ('451201', '市辖区', '451200');
INSERT INTO `areainfo` VALUES ('451202', '金城江区', '451200');
INSERT INTO `areainfo` VALUES ('451221', '南丹县', '451200');
INSERT INTO `areainfo` VALUES ('451222', '天峨县', '451200');
INSERT INTO `areainfo` VALUES ('451223', '凤山县', '451200');
INSERT INTO `areainfo` VALUES ('451224', '东兰县', '451200');
INSERT INTO `areainfo` VALUES ('451225', '罗城仫佬族自治县', '451200');
INSERT INTO `areainfo` VALUES ('451226', '环江毛南族自治县', '451200');
INSERT INTO `areainfo` VALUES ('451227', '巴马瑶族自治县', '451200');
INSERT INTO `areainfo` VALUES ('451228', '都安瑶族自治县', '451200');
INSERT INTO `areainfo` VALUES ('451229', '大化瑶族自治县', '451200');
INSERT INTO `areainfo` VALUES ('451281', '宜州市', '451200');
INSERT INTO `areainfo` VALUES ('451300', '来宾市', '450000');
INSERT INTO `areainfo` VALUES ('451301', '市辖区', '451300');
INSERT INTO `areainfo` VALUES ('451302', '兴宾区', '451300');
INSERT INTO `areainfo` VALUES ('451321', '忻城县', '451300');
INSERT INTO `areainfo` VALUES ('451322', '象州县', '451300');
INSERT INTO `areainfo` VALUES ('451323', '武宣县', '451300');
INSERT INTO `areainfo` VALUES ('451324', '金秀瑶族自治县', '451300');
INSERT INTO `areainfo` VALUES ('451381', '合山市', '451300');
INSERT INTO `areainfo` VALUES ('451400', '崇左市', '450000');
INSERT INTO `areainfo` VALUES ('451401', '市辖区', '451400');
INSERT INTO `areainfo` VALUES ('451402', '江州区', '451400');
INSERT INTO `areainfo` VALUES ('451421', '扶绥县', '451400');
INSERT INTO `areainfo` VALUES ('451422', '宁明县', '451400');
INSERT INTO `areainfo` VALUES ('451423', '龙州县', '451400');
INSERT INTO `areainfo` VALUES ('451424', '大新县', '451400');
INSERT INTO `areainfo` VALUES ('451425', '天等县', '451400');
INSERT INTO `areainfo` VALUES ('451481', '凭祥市', '451400');
INSERT INTO `areainfo` VALUES ('460000', '海南省', NULL);
INSERT INTO `areainfo` VALUES ('460100', '海口市', '460000');
INSERT INTO `areainfo` VALUES ('460101', '市辖区', '460100');
INSERT INTO `areainfo` VALUES ('460105', '秀英区', '460100');
INSERT INTO `areainfo` VALUES ('460106', '龙华区', '460100');
INSERT INTO `areainfo` VALUES ('460107', '琼山区', '460100');
INSERT INTO `areainfo` VALUES ('460108', '美兰区', '460100');
INSERT INTO `areainfo` VALUES ('460200', '三亚市', '460000');
INSERT INTO `areainfo` VALUES ('460201', '市辖区', '460200');
INSERT INTO `areainfo` VALUES ('460202', '海棠区', '460200');
INSERT INTO `areainfo` VALUES ('460203', '吉阳区', '460200');
INSERT INTO `areainfo` VALUES ('460204', '天涯区', '460200');
INSERT INTO `areainfo` VALUES ('460205', '崖州区', '460200');
INSERT INTO `areainfo` VALUES ('460300', '三沙市', '460000');
INSERT INTO `areainfo` VALUES ('460400', '儋州市', '460000');
INSERT INTO `areainfo` VALUES ('469000', '省直辖县级行政区划', '460000');
INSERT INTO `areainfo` VALUES ('469001', '五指山市', '469000');
INSERT INTO `areainfo` VALUES ('469002', '琼海市', '469000');
INSERT INTO `areainfo` VALUES ('469005', '文昌市', '469000');
INSERT INTO `areainfo` VALUES ('469006', '万宁市', '469000');
INSERT INTO `areainfo` VALUES ('469007', '东方市', '469000');
INSERT INTO `areainfo` VALUES ('469021', '定安县', '469000');
INSERT INTO `areainfo` VALUES ('469022', '屯昌县', '469000');
INSERT INTO `areainfo` VALUES ('469023', '澄迈县', '469000');
INSERT INTO `areainfo` VALUES ('469024', '临高县', '469000');
INSERT INTO `areainfo` VALUES ('469025', '白沙黎族自治县', '469000');
INSERT INTO `areainfo` VALUES ('469026', '昌江黎族自治县', '469000');
INSERT INTO `areainfo` VALUES ('469027', '乐东黎族自治县', '469000');
INSERT INTO `areainfo` VALUES ('469028', '陵水黎族自治县', '469000');
INSERT INTO `areainfo` VALUES ('469029', '保亭黎族苗族自治县', '469000');
INSERT INTO `areainfo` VALUES ('469030', '琼中黎族苗族自治县', '469000');
INSERT INTO `areainfo` VALUES ('500000', '重庆市', NULL);
INSERT INTO `areainfo` VALUES ('500100', '市辖区', '500000');
INSERT INTO `areainfo` VALUES ('500101', '万州区', '500100');
INSERT INTO `areainfo` VALUES ('500102', '涪陵区', '500100');
INSERT INTO `areainfo` VALUES ('500103', '渝中区', '500100');
INSERT INTO `areainfo` VALUES ('500104', '大渡口区', '500100');
INSERT INTO `areainfo` VALUES ('500105', '江北区', '500100');
INSERT INTO `areainfo` VALUES ('500106', '沙坪坝区', '500100');
INSERT INTO `areainfo` VALUES ('500107', '九龙坡区', '500100');
INSERT INTO `areainfo` VALUES ('500108', '南岸区', '500100');
INSERT INTO `areainfo` VALUES ('500109', '北碚区', '500100');
INSERT INTO `areainfo` VALUES ('500110', '綦江区', '500100');
INSERT INTO `areainfo` VALUES ('500111', '大足区', '500100');
INSERT INTO `areainfo` VALUES ('500112', '渝北区', '500100');
INSERT INTO `areainfo` VALUES ('500113', '巴南区', '500100');
INSERT INTO `areainfo` VALUES ('500114', '黔江区', '500100');
INSERT INTO `areainfo` VALUES ('500115', '长寿区', '500100');
INSERT INTO `areainfo` VALUES ('500116', '江津区', '500100');
INSERT INTO `areainfo` VALUES ('500117', '合川区', '500100');
INSERT INTO `areainfo` VALUES ('500118', '永川区', '500100');
INSERT INTO `areainfo` VALUES ('500119', '南川区', '500100');
INSERT INTO `areainfo` VALUES ('500120', '璧山区', '500100');
INSERT INTO `areainfo` VALUES ('500151', '铜梁区', '500100');
INSERT INTO `areainfo` VALUES ('500152', '潼南区', '500100');
INSERT INTO `areainfo` VALUES ('500153', '荣昌区', '500100');
INSERT INTO `areainfo` VALUES ('500154', '开州区', '500100');
INSERT INTO `areainfo` VALUES ('500200', '县', '500000');
INSERT INTO `areainfo` VALUES ('500228', '梁平县', '500200');
INSERT INTO `areainfo` VALUES ('500229', '城口县', '500200');
INSERT INTO `areainfo` VALUES ('500230', '丰都县', '500200');
INSERT INTO `areainfo` VALUES ('500231', '垫江县', '500200');
INSERT INTO `areainfo` VALUES ('500232', '武隆县', '500200');
INSERT INTO `areainfo` VALUES ('500233', '忠县', '500200');
INSERT INTO `areainfo` VALUES ('500235', '云阳县', '500200');
INSERT INTO `areainfo` VALUES ('500236', '奉节县', '500200');
INSERT INTO `areainfo` VALUES ('500237', '巫山县', '500200');
INSERT INTO `areainfo` VALUES ('500238', '巫溪县', '500200');
INSERT INTO `areainfo` VALUES ('500240', '石柱土家族自治县', '500200');
INSERT INTO `areainfo` VALUES ('500241', '秀山土家族苗族自治县', '500200');
INSERT INTO `areainfo` VALUES ('500242', '酉阳土家族苗族自治县', '500200');
INSERT INTO `areainfo` VALUES ('500243', '彭水苗族土家族自治县', '500200');
INSERT INTO `areainfo` VALUES ('510000', '四川省', NULL);
INSERT INTO `areainfo` VALUES ('510100', '成都市', '510000');
INSERT INTO `areainfo` VALUES ('510101', '市辖区', '510100');
INSERT INTO `areainfo` VALUES ('510104', '锦江区', '510100');
INSERT INTO `areainfo` VALUES ('510105', '青羊区', '510100');
INSERT INTO `areainfo` VALUES ('510106', '金牛区', '510100');
INSERT INTO `areainfo` VALUES ('510107', '武侯区', '510100');
INSERT INTO `areainfo` VALUES ('510108', '成华区', '510100');
INSERT INTO `areainfo` VALUES ('510112', '龙泉驿区', '510100');
INSERT INTO `areainfo` VALUES ('510113', '青白江区', '510100');
INSERT INTO `areainfo` VALUES ('510114', '新都区', '510100');
INSERT INTO `areainfo` VALUES ('510115', '温江区', '510100');
INSERT INTO `areainfo` VALUES ('510116', '双流区', '510100');
INSERT INTO `areainfo` VALUES ('510121', '金堂县', '510100');
INSERT INTO `areainfo` VALUES ('510124', '郫县', '510100');
INSERT INTO `areainfo` VALUES ('510129', '大邑县', '510100');
INSERT INTO `areainfo` VALUES ('510131', '蒲江县', '510100');
INSERT INTO `areainfo` VALUES ('510132', '新津县', '510100');
INSERT INTO `areainfo` VALUES ('510181', '都江堰市', '510100');
INSERT INTO `areainfo` VALUES ('510182', '彭州市', '510100');
INSERT INTO `areainfo` VALUES ('510183', '邛崃市', '510100');
INSERT INTO `areainfo` VALUES ('510184', '崇州市', '510100');
INSERT INTO `areainfo` VALUES ('510185', '简阳市', '510100');
INSERT INTO `areainfo` VALUES ('510300', '自贡市', '510000');
INSERT INTO `areainfo` VALUES ('510301', '市辖区', '510300');
INSERT INTO `areainfo` VALUES ('510302', '自流井区', '510300');
INSERT INTO `areainfo` VALUES ('510303', '贡井区', '510300');
INSERT INTO `areainfo` VALUES ('510304', '大安区', '510300');
INSERT INTO `areainfo` VALUES ('510311', '沿滩区', '510300');
INSERT INTO `areainfo` VALUES ('510321', '荣县', '510300');
INSERT INTO `areainfo` VALUES ('510322', '富顺县', '510300');
INSERT INTO `areainfo` VALUES ('510400', '攀枝花市', '510000');
INSERT INTO `areainfo` VALUES ('510401', '市辖区', '510400');
INSERT INTO `areainfo` VALUES ('510402', '东区', '510400');
INSERT INTO `areainfo` VALUES ('510403', '西区', '510400');
INSERT INTO `areainfo` VALUES ('510411', '仁和区', '510400');
INSERT INTO `areainfo` VALUES ('510421', '米易县', '510400');
INSERT INTO `areainfo` VALUES ('510422', '盐边县', '510400');
INSERT INTO `areainfo` VALUES ('510500', '泸州市', '510000');
INSERT INTO `areainfo` VALUES ('510501', '市辖区', '510500');
INSERT INTO `areainfo` VALUES ('510502', '江阳区', '510500');
INSERT INTO `areainfo` VALUES ('510503', '纳溪区', '510500');
INSERT INTO `areainfo` VALUES ('510504', '龙马潭区', '510500');
INSERT INTO `areainfo` VALUES ('510521', '泸县', '510500');
INSERT INTO `areainfo` VALUES ('510522', '合江县', '510500');
INSERT INTO `areainfo` VALUES ('510524', '叙永县', '510500');
INSERT INTO `areainfo` VALUES ('510525', '古蔺县', '510500');
INSERT INTO `areainfo` VALUES ('510600', '德阳市', '510000');
INSERT INTO `areainfo` VALUES ('510601', '市辖区', '510600');
INSERT INTO `areainfo` VALUES ('510603', '旌阳区', '510600');
INSERT INTO `areainfo` VALUES ('510623', '中江县', '510600');
INSERT INTO `areainfo` VALUES ('510626', '罗江县', '510600');
INSERT INTO `areainfo` VALUES ('510681', '广汉市', '510600');
INSERT INTO `areainfo` VALUES ('510682', '什邡市', '510600');
INSERT INTO `areainfo` VALUES ('510683', '绵竹市', '510600');
INSERT INTO `areainfo` VALUES ('510700', '绵阳市', '510000');
INSERT INTO `areainfo` VALUES ('510701', '市辖区', '510700');
INSERT INTO `areainfo` VALUES ('510703', '涪城区', '510700');
INSERT INTO `areainfo` VALUES ('510704', '游仙区', '510700');
INSERT INTO `areainfo` VALUES ('510705', '安州区', '510700');
INSERT INTO `areainfo` VALUES ('510722', '三台县', '510700');
INSERT INTO `areainfo` VALUES ('510723', '盐亭县', '510700');
INSERT INTO `areainfo` VALUES ('510725', '梓潼县', '510700');
INSERT INTO `areainfo` VALUES ('510726', '北川羌族自治县', '510700');
INSERT INTO `areainfo` VALUES ('510727', '平武县', '510700');
INSERT INTO `areainfo` VALUES ('510781', '江油市', '510700');
INSERT INTO `areainfo` VALUES ('510800', '广元市', '510000');
INSERT INTO `areainfo` VALUES ('510801', '市辖区', '510800');
INSERT INTO `areainfo` VALUES ('510802', '利州区', '510800');
INSERT INTO `areainfo` VALUES ('510811', '昭化区', '510800');
INSERT INTO `areainfo` VALUES ('510812', '朝天区', '510800');
INSERT INTO `areainfo` VALUES ('510821', '旺苍县', '510800');
INSERT INTO `areainfo` VALUES ('510822', '青川县', '510800');
INSERT INTO `areainfo` VALUES ('510823', '剑阁县', '510800');
INSERT INTO `areainfo` VALUES ('510824', '苍溪县', '510800');
INSERT INTO `areainfo` VALUES ('510900', '遂宁市', '510000');
INSERT INTO `areainfo` VALUES ('510901', '市辖区', '510900');
INSERT INTO `areainfo` VALUES ('510903', '船山区', '510900');
INSERT INTO `areainfo` VALUES ('510904', '安居区', '510900');
INSERT INTO `areainfo` VALUES ('510921', '蓬溪县', '510900');
INSERT INTO `areainfo` VALUES ('510922', '射洪县', '510900');
INSERT INTO `areainfo` VALUES ('510923', '大英县', '510900');
INSERT INTO `areainfo` VALUES ('511000', '内江市', '510000');
INSERT INTO `areainfo` VALUES ('511001', '市辖区', '511000');
INSERT INTO `areainfo` VALUES ('511002', '市中区', '511000');
INSERT INTO `areainfo` VALUES ('511011', '东兴区', '511000');
INSERT INTO `areainfo` VALUES ('511024', '威远县', '511000');
INSERT INTO `areainfo` VALUES ('511025', '资中县', '511000');
INSERT INTO `areainfo` VALUES ('511028', '隆昌县', '511000');
INSERT INTO `areainfo` VALUES ('511100', '乐山市', '510000');
INSERT INTO `areainfo` VALUES ('511101', '市辖区', '511100');
INSERT INTO `areainfo` VALUES ('511102', '市中区', '511100');
INSERT INTO `areainfo` VALUES ('511111', '沙湾区', '511100');
INSERT INTO `areainfo` VALUES ('511112', '五通桥区', '511100');
INSERT INTO `areainfo` VALUES ('511113', '金口河区', '511100');
INSERT INTO `areainfo` VALUES ('511123', '犍为县', '511100');
INSERT INTO `areainfo` VALUES ('511124', '井研县', '511100');
INSERT INTO `areainfo` VALUES ('511126', '夹江县', '511100');
INSERT INTO `areainfo` VALUES ('511129', '沐川县', '511100');
INSERT INTO `areainfo` VALUES ('511132', '峨边彝族自治县', '511100');
INSERT INTO `areainfo` VALUES ('511133', '马边彝族自治县', '511100');
INSERT INTO `areainfo` VALUES ('511181', '峨眉山市', '511100');
INSERT INTO `areainfo` VALUES ('511300', '南充市', '510000');
INSERT INTO `areainfo` VALUES ('511301', '市辖区', '511300');
INSERT INTO `areainfo` VALUES ('511302', '顺庆区', '511300');
INSERT INTO `areainfo` VALUES ('511303', '高坪区', '511300');
INSERT INTO `areainfo` VALUES ('511304', '嘉陵区', '511300');
INSERT INTO `areainfo` VALUES ('511321', '南部县', '511300');
INSERT INTO `areainfo` VALUES ('511322', '营山县', '511300');
INSERT INTO `areainfo` VALUES ('511323', '蓬安县', '511300');
INSERT INTO `areainfo` VALUES ('511324', '仪陇县', '511300');
INSERT INTO `areainfo` VALUES ('511325', '西充县', '511300');
INSERT INTO `areainfo` VALUES ('511381', '阆中市', '511300');
INSERT INTO `areainfo` VALUES ('511400', '眉山市', '510000');
INSERT INTO `areainfo` VALUES ('511401', '市辖区', '511400');
INSERT INTO `areainfo` VALUES ('511402', '东坡区', '511400');
INSERT INTO `areainfo` VALUES ('511403', '彭山区', '511400');
INSERT INTO `areainfo` VALUES ('511421', '仁寿县', '511400');
INSERT INTO `areainfo` VALUES ('511423', '洪雅县', '511400');
INSERT INTO `areainfo` VALUES ('511424', '丹棱县', '511400');
INSERT INTO `areainfo` VALUES ('511425', '青神县', '511400');
INSERT INTO `areainfo` VALUES ('511500', '宜宾市', '510000');
INSERT INTO `areainfo` VALUES ('511501', '市辖区', '511500');
INSERT INTO `areainfo` VALUES ('511502', '翠屏区', '511500');
INSERT INTO `areainfo` VALUES ('511503', '南溪区', '511500');
INSERT INTO `areainfo` VALUES ('511521', '宜宾县', '511500');
INSERT INTO `areainfo` VALUES ('511523', '江安县', '511500');
INSERT INTO `areainfo` VALUES ('511524', '长宁县', '511500');
INSERT INTO `areainfo` VALUES ('511525', '高县', '511500');
INSERT INTO `areainfo` VALUES ('511526', '珙县', '511500');
INSERT INTO `areainfo` VALUES ('511527', '筠连县', '511500');
INSERT INTO `areainfo` VALUES ('511528', '兴文县', '511500');
INSERT INTO `areainfo` VALUES ('511529', '屏山县', '511500');
INSERT INTO `areainfo` VALUES ('511600', '广安市', '510000');
INSERT INTO `areainfo` VALUES ('511601', '市辖区', '511600');
INSERT INTO `areainfo` VALUES ('511602', '广安区', '511600');
INSERT INTO `areainfo` VALUES ('511603', '前锋区', '511600');
INSERT INTO `areainfo` VALUES ('511621', '岳池县', '511600');
INSERT INTO `areainfo` VALUES ('511622', '武胜县', '511600');
INSERT INTO `areainfo` VALUES ('511623', '邻水县', '511600');
INSERT INTO `areainfo` VALUES ('511681', '华蓥市', '511600');
INSERT INTO `areainfo` VALUES ('511700', '达州市', '510000');
INSERT INTO `areainfo` VALUES ('511701', '市辖区', '511700');
INSERT INTO `areainfo` VALUES ('511702', '通川区', '511700');
INSERT INTO `areainfo` VALUES ('511703', '达川区', '511700');
INSERT INTO `areainfo` VALUES ('511722', '宣汉县', '511700');
INSERT INTO `areainfo` VALUES ('511723', '开江县', '511700');
INSERT INTO `areainfo` VALUES ('511724', '大竹县', '511700');
INSERT INTO `areainfo` VALUES ('511725', '渠县', '511700');
INSERT INTO `areainfo` VALUES ('511781', '万源市', '511700');
INSERT INTO `areainfo` VALUES ('511800', '雅安市', '510000');
INSERT INTO `areainfo` VALUES ('511801', '市辖区', '511800');
INSERT INTO `areainfo` VALUES ('511802', '雨城区', '511800');
INSERT INTO `areainfo` VALUES ('511803', '名山区', '511800');
INSERT INTO `areainfo` VALUES ('511822', '荥经县', '511800');
INSERT INTO `areainfo` VALUES ('511823', '汉源县', '511800');
INSERT INTO `areainfo` VALUES ('511824', '石棉县', '511800');
INSERT INTO `areainfo` VALUES ('511825', '天全县', '511800');
INSERT INTO `areainfo` VALUES ('511826', '芦山县', '511800');
INSERT INTO `areainfo` VALUES ('511827', '宝兴县', '511800');
INSERT INTO `areainfo` VALUES ('511900', '巴中市', '510000');
INSERT INTO `areainfo` VALUES ('511901', '市辖区', '511900');
INSERT INTO `areainfo` VALUES ('511902', '巴州区', '511900');
INSERT INTO `areainfo` VALUES ('511903', '恩阳区', '511900');
INSERT INTO `areainfo` VALUES ('511921', '通江县', '511900');
INSERT INTO `areainfo` VALUES ('511922', '南江县', '511900');
INSERT INTO `areainfo` VALUES ('511923', '平昌县', '511900');
INSERT INTO `areainfo` VALUES ('512000', '资阳市', '510000');
INSERT INTO `areainfo` VALUES ('512001', '市辖区', '512000');
INSERT INTO `areainfo` VALUES ('512002', '雁江区', '512000');
INSERT INTO `areainfo` VALUES ('512021', '安岳县', '512000');
INSERT INTO `areainfo` VALUES ('512022', '乐至县', '512000');
INSERT INTO `areainfo` VALUES ('513200', '阿坝藏族羌族自治州', '510000');
INSERT INTO `areainfo` VALUES ('513201', '马尔康市', '513200');
INSERT INTO `areainfo` VALUES ('513221', '汶川县', '513200');
INSERT INTO `areainfo` VALUES ('513222', '理县', '513200');
INSERT INTO `areainfo` VALUES ('513223', '茂县', '513200');
INSERT INTO `areainfo` VALUES ('513224', '松潘县', '513200');
INSERT INTO `areainfo` VALUES ('513225', '九寨沟县', '513200');
INSERT INTO `areainfo` VALUES ('513226', '金川县', '513200');
INSERT INTO `areainfo` VALUES ('513227', '小金县', '513200');
INSERT INTO `areainfo` VALUES ('513228', '黑水县', '513200');
INSERT INTO `areainfo` VALUES ('513230', '壤塘县', '513200');
INSERT INTO `areainfo` VALUES ('513231', '阿坝县', '513200');
INSERT INTO `areainfo` VALUES ('513232', '若尔盖县', '513200');
INSERT INTO `areainfo` VALUES ('513233', '红原县', '513200');
INSERT INTO `areainfo` VALUES ('513300', '甘孜藏族自治州', '510000');
INSERT INTO `areainfo` VALUES ('513301', '康定市', '513300');
INSERT INTO `areainfo` VALUES ('513322', '泸定县', '513300');
INSERT INTO `areainfo` VALUES ('513323', '丹巴县', '513300');
INSERT INTO `areainfo` VALUES ('513324', '九龙县', '513300');
INSERT INTO `areainfo` VALUES ('513325', '雅江县', '513300');
INSERT INTO `areainfo` VALUES ('513326', '道孚县', '513300');
INSERT INTO `areainfo` VALUES ('513327', '炉霍县', '513300');
INSERT INTO `areainfo` VALUES ('513328', '甘孜县', '513300');
INSERT INTO `areainfo` VALUES ('513329', '新龙县', '513300');
INSERT INTO `areainfo` VALUES ('513330', '德格县', '513300');
INSERT INTO `areainfo` VALUES ('513331', '白玉县', '513300');
INSERT INTO `areainfo` VALUES ('513332', '石渠县', '513300');
INSERT INTO `areainfo` VALUES ('513333', '色达县', '513300');
INSERT INTO `areainfo` VALUES ('513334', '理塘县', '513300');
INSERT INTO `areainfo` VALUES ('513335', '巴塘县', '513300');
INSERT INTO `areainfo` VALUES ('513336', '乡城县', '513300');
INSERT INTO `areainfo` VALUES ('513337', '稻城县', '513300');
INSERT INTO `areainfo` VALUES ('513338', '得荣县', '513300');
INSERT INTO `areainfo` VALUES ('513400', '凉山彝族自治州', '510000');
INSERT INTO `areainfo` VALUES ('513401', '西昌市', '513400');
INSERT INTO `areainfo` VALUES ('513422', '木里藏族自治县', '513400');
INSERT INTO `areainfo` VALUES ('513423', '盐源县', '513400');
INSERT INTO `areainfo` VALUES ('513424', '德昌县', '513400');
INSERT INTO `areainfo` VALUES ('513425', '会理县', '513400');
INSERT INTO `areainfo` VALUES ('513426', '会东县', '513400');
INSERT INTO `areainfo` VALUES ('513427', '宁南县', '513400');
INSERT INTO `areainfo` VALUES ('513428', '普格县', '513400');
INSERT INTO `areainfo` VALUES ('513429', '布拖县', '513400');
INSERT INTO `areainfo` VALUES ('513430', '金阳县', '513400');
INSERT INTO `areainfo` VALUES ('513431', '昭觉县', '513400');
INSERT INTO `areainfo` VALUES ('513432', '喜德县', '513400');
INSERT INTO `areainfo` VALUES ('513433', '冕宁县', '513400');
INSERT INTO `areainfo` VALUES ('513434', '越西县', '513400');
INSERT INTO `areainfo` VALUES ('513435', '甘洛县', '513400');
INSERT INTO `areainfo` VALUES ('513436', '美姑县', '513400');
INSERT INTO `areainfo` VALUES ('513437', '雷波县', '513400');
INSERT INTO `areainfo` VALUES ('520000', '贵州省', NULL);
INSERT INTO `areainfo` VALUES ('520100', '贵阳市', '520000');
INSERT INTO `areainfo` VALUES ('520101', '市辖区', '520100');
INSERT INTO `areainfo` VALUES ('520102', '南明区', '520100');
INSERT INTO `areainfo` VALUES ('520103', '云岩区', '520100');
INSERT INTO `areainfo` VALUES ('520111', '花溪区', '520100');
INSERT INTO `areainfo` VALUES ('520112', '乌当区', '520100');
INSERT INTO `areainfo` VALUES ('520113', '白云区', '520100');
INSERT INTO `areainfo` VALUES ('520115', '观山湖区', '520100');
INSERT INTO `areainfo` VALUES ('520121', '开阳县', '520100');
INSERT INTO `areainfo` VALUES ('520122', '息烽县', '520100');
INSERT INTO `areainfo` VALUES ('520123', '修文县', '520100');
INSERT INTO `areainfo` VALUES ('520181', '清镇市', '520100');
INSERT INTO `areainfo` VALUES ('520200', '六盘水市', '520000');
INSERT INTO `areainfo` VALUES ('520201', '钟山区', '520200');
INSERT INTO `areainfo` VALUES ('520203', '六枝特区', '520200');
INSERT INTO `areainfo` VALUES ('520221', '水城县', '520200');
INSERT INTO `areainfo` VALUES ('520222', '盘县', '520200');
INSERT INTO `areainfo` VALUES ('520300', '遵义市', '520000');
INSERT INTO `areainfo` VALUES ('520301', '市辖区', '520300');
INSERT INTO `areainfo` VALUES ('520302', '红花岗区', '520300');
INSERT INTO `areainfo` VALUES ('520303', '汇川区', '520300');
INSERT INTO `areainfo` VALUES ('520304', '播州区', '520300');
INSERT INTO `areainfo` VALUES ('520322', '桐梓县', '520300');
INSERT INTO `areainfo` VALUES ('520323', '绥阳县', '520300');
INSERT INTO `areainfo` VALUES ('520324', '正安县', '520300');
INSERT INTO `areainfo` VALUES ('520325', '道真仡佬族苗族自治县', '520300');
INSERT INTO `areainfo` VALUES ('520326', '务川仡佬族苗族自治县', '520300');
INSERT INTO `areainfo` VALUES ('520327', '凤冈县', '520300');
INSERT INTO `areainfo` VALUES ('520328', '湄潭县', '520300');
INSERT INTO `areainfo` VALUES ('520329', '余庆县', '520300');
INSERT INTO `areainfo` VALUES ('520330', '习水县', '520300');
INSERT INTO `areainfo` VALUES ('520381', '赤水市', '520300');
INSERT INTO `areainfo` VALUES ('520382', '仁怀市', '520300');
INSERT INTO `areainfo` VALUES ('520400', '安顺市', '520000');
INSERT INTO `areainfo` VALUES ('520401', '市辖区', '520400');
INSERT INTO `areainfo` VALUES ('520402', '西秀区', '520400');
INSERT INTO `areainfo` VALUES ('520403', '平坝区', '520400');
INSERT INTO `areainfo` VALUES ('520422', '普定县', '520400');
INSERT INTO `areainfo` VALUES ('520423', '镇宁布依族苗族自治县', '520400');
INSERT INTO `areainfo` VALUES ('520424', '关岭布依族苗族自治县', '520400');
INSERT INTO `areainfo` VALUES ('520425', '紫云苗族布依族自治县', '520400');
INSERT INTO `areainfo` VALUES ('520500', '毕节市', '520000');
INSERT INTO `areainfo` VALUES ('520501', '市辖区', '520500');
INSERT INTO `areainfo` VALUES ('520502', '七星关区', '520500');
INSERT INTO `areainfo` VALUES ('520521', '大方县', '520500');
INSERT INTO `areainfo` VALUES ('520522', '黔西县', '520500');
INSERT INTO `areainfo` VALUES ('520523', '金沙县', '520500');
INSERT INTO `areainfo` VALUES ('520524', '织金县', '520500');
INSERT INTO `areainfo` VALUES ('520525', '纳雍县', '520500');
INSERT INTO `areainfo` VALUES ('520526', '威宁彝族回族苗族自治县', '520500');
INSERT INTO `areainfo` VALUES ('520527', '赫章县', '520500');
INSERT INTO `areainfo` VALUES ('520600', '铜仁市', '520000');
INSERT INTO `areainfo` VALUES ('520601', '市辖区', '520600');
INSERT INTO `areainfo` VALUES ('520602', '碧江区', '520600');
INSERT INTO `areainfo` VALUES ('520603', '万山区', '520600');
INSERT INTO `areainfo` VALUES ('520621', '江口县', '520600');
INSERT INTO `areainfo` VALUES ('520622', '玉屏侗族自治县', '520600');
INSERT INTO `areainfo` VALUES ('520623', '石阡县', '520600');
INSERT INTO `areainfo` VALUES ('520624', '思南县', '520600');
INSERT INTO `areainfo` VALUES ('520625', '印江土家族苗族自治县', '520600');
INSERT INTO `areainfo` VALUES ('520626', '德江县', '520600');
INSERT INTO `areainfo` VALUES ('520627', '沿河土家族自治县', '520600');
INSERT INTO `areainfo` VALUES ('520628', '松桃苗族自治县', '520600');
INSERT INTO `areainfo` VALUES ('522300', '黔西南布依族苗族自治州', '520000');
INSERT INTO `areainfo` VALUES ('522301', '兴义市', '522300');
INSERT INTO `areainfo` VALUES ('522322', '兴仁县', '522300');
INSERT INTO `areainfo` VALUES ('522323', '普安县', '522300');
INSERT INTO `areainfo` VALUES ('522324', '晴隆县', '522300');
INSERT INTO `areainfo` VALUES ('522325', '贞丰县', '522300');
INSERT INTO `areainfo` VALUES ('522326', '望谟县', '522300');
INSERT INTO `areainfo` VALUES ('522327', '册亨县', '522300');
INSERT INTO `areainfo` VALUES ('522328', '安龙县', '522300');
INSERT INTO `areainfo` VALUES ('522600', '黔东南苗族侗族自治州', '520000');
INSERT INTO `areainfo` VALUES ('522601', '凯里市', '522600');
INSERT INTO `areainfo` VALUES ('522622', '黄平县', '522600');
INSERT INTO `areainfo` VALUES ('522623', '施秉县', '522600');
INSERT INTO `areainfo` VALUES ('522624', '三穗县', '522600');
INSERT INTO `areainfo` VALUES ('522625', '镇远县', '522600');
INSERT INTO `areainfo` VALUES ('522626', '岑巩县', '522600');
INSERT INTO `areainfo` VALUES ('522627', '天柱县', '522600');
INSERT INTO `areainfo` VALUES ('522628', '锦屏县', '522600');
INSERT INTO `areainfo` VALUES ('522629', '剑河县', '522600');
INSERT INTO `areainfo` VALUES ('522630', '台江县', '522600');
INSERT INTO `areainfo` VALUES ('522631', '黎平县', '522600');
INSERT INTO `areainfo` VALUES ('522632', '榕江县', '522600');
INSERT INTO `areainfo` VALUES ('522633', '从江县', '522600');
INSERT INTO `areainfo` VALUES ('522634', '雷山县', '522600');
INSERT INTO `areainfo` VALUES ('522635', '麻江县', '522600');
INSERT INTO `areainfo` VALUES ('522636', '丹寨县', '522600');
INSERT INTO `areainfo` VALUES ('522700', '黔南布依族苗族自治州', '520000');
INSERT INTO `areainfo` VALUES ('522701', '都匀市', '522700');
INSERT INTO `areainfo` VALUES ('522702', '福泉市', '522700');
INSERT INTO `areainfo` VALUES ('522722', '荔波县', '522700');
INSERT INTO `areainfo` VALUES ('522723', '贵定县', '522700');
INSERT INTO `areainfo` VALUES ('522725', '瓮安县', '522700');
INSERT INTO `areainfo` VALUES ('522726', '独山县', '522700');
INSERT INTO `areainfo` VALUES ('522727', '平塘县', '522700');
INSERT INTO `areainfo` VALUES ('522728', '罗甸县', '522700');
INSERT INTO `areainfo` VALUES ('522729', '长顺县', '522700');
INSERT INTO `areainfo` VALUES ('522730', '龙里县', '522700');
INSERT INTO `areainfo` VALUES ('522731', '惠水县', '522700');
INSERT INTO `areainfo` VALUES ('522732', '三都水族自治县', '522700');
INSERT INTO `areainfo` VALUES ('530000', '云南省', NULL);
INSERT INTO `areainfo` VALUES ('530100', '昆明市', '530000');
INSERT INTO `areainfo` VALUES ('530101', '市辖区', '530100');
INSERT INTO `areainfo` VALUES ('530102', '五华区', '530100');
INSERT INTO `areainfo` VALUES ('530103', '盘龙区', '530100');
INSERT INTO `areainfo` VALUES ('530111', '官渡区', '530100');
INSERT INTO `areainfo` VALUES ('530112', '西山区', '530100');
INSERT INTO `areainfo` VALUES ('530113', '东川区', '530100');
INSERT INTO `areainfo` VALUES ('530114', '呈贡区', '530100');
INSERT INTO `areainfo` VALUES ('530122', '晋宁县', '530100');
INSERT INTO `areainfo` VALUES ('530124', '富民县', '530100');
INSERT INTO `areainfo` VALUES ('530125', '宜良县', '530100');
INSERT INTO `areainfo` VALUES ('530126', '石林彝族自治县', '530100');
INSERT INTO `areainfo` VALUES ('530127', '嵩明县', '530100');
INSERT INTO `areainfo` VALUES ('530128', '禄劝彝族苗族自治县', '530100');
INSERT INTO `areainfo` VALUES ('530129', '寻甸回族彝族自治县', '530100');
INSERT INTO `areainfo` VALUES ('530181', '安宁市', '530100');
INSERT INTO `areainfo` VALUES ('530300', '曲靖市', '530000');
INSERT INTO `areainfo` VALUES ('530301', '市辖区', '530300');
INSERT INTO `areainfo` VALUES ('530302', '麒麟区', '530300');
INSERT INTO `areainfo` VALUES ('530303', '沾益区', '530300');
INSERT INTO `areainfo` VALUES ('530321', '马龙县', '530300');
INSERT INTO `areainfo` VALUES ('530322', '陆良县', '530300');
INSERT INTO `areainfo` VALUES ('530323', '师宗县', '530300');
INSERT INTO `areainfo` VALUES ('530324', '罗平县', '530300');
INSERT INTO `areainfo` VALUES ('530325', '富源县', '530300');
INSERT INTO `areainfo` VALUES ('530326', '会泽县', '530300');
INSERT INTO `areainfo` VALUES ('530381', '宣威市', '530300');
INSERT INTO `areainfo` VALUES ('530400', '玉溪市', '530000');
INSERT INTO `areainfo` VALUES ('530401', '市辖区', '530400');
INSERT INTO `areainfo` VALUES ('530402', '红塔区', '530400');
INSERT INTO `areainfo` VALUES ('530403', '江川区', '530400');
INSERT INTO `areainfo` VALUES ('530422', '澄江县', '530400');
INSERT INTO `areainfo` VALUES ('530423', '通海县', '530400');
INSERT INTO `areainfo` VALUES ('530424', '华宁县', '530400');
INSERT INTO `areainfo` VALUES ('530425', '易门县', '530400');
INSERT INTO `areainfo` VALUES ('530426', '峨山彝族自治县', '530400');
INSERT INTO `areainfo` VALUES ('530427', '新平彝族傣族自治县', '530400');
INSERT INTO `areainfo` VALUES ('530428', '元江哈尼族彝族傣族自治县', '530400');
INSERT INTO `areainfo` VALUES ('530500', '保山市', '530000');
INSERT INTO `areainfo` VALUES ('530501', '市辖区', '530500');
INSERT INTO `areainfo` VALUES ('530502', '隆阳区', '530500');
INSERT INTO `areainfo` VALUES ('530521', '施甸县', '530500');
INSERT INTO `areainfo` VALUES ('530523', '龙陵县', '530500');
INSERT INTO `areainfo` VALUES ('530524', '昌宁县', '530500');
INSERT INTO `areainfo` VALUES ('530581', '腾冲市', '530500');
INSERT INTO `areainfo` VALUES ('530600', '昭通市', '530000');
INSERT INTO `areainfo` VALUES ('530601', '市辖区', '530600');
INSERT INTO `areainfo` VALUES ('530602', '昭阳区', '530600');
INSERT INTO `areainfo` VALUES ('530621', '鲁甸县', '530600');
INSERT INTO `areainfo` VALUES ('530622', '巧家县', '530600');
INSERT INTO `areainfo` VALUES ('530623', '盐津县', '530600');
INSERT INTO `areainfo` VALUES ('530624', '大关县', '530600');
INSERT INTO `areainfo` VALUES ('530625', '永善县', '530600');
INSERT INTO `areainfo` VALUES ('530626', '绥江县', '530600');
INSERT INTO `areainfo` VALUES ('530627', '镇雄县', '530600');
INSERT INTO `areainfo` VALUES ('530628', '彝良县', '530600');
INSERT INTO `areainfo` VALUES ('530629', '威信县', '530600');
INSERT INTO `areainfo` VALUES ('530630', '水富县', '530600');
INSERT INTO `areainfo` VALUES ('530700', '丽江市', '530000');
INSERT INTO `areainfo` VALUES ('530701', '市辖区', '530700');
INSERT INTO `areainfo` VALUES ('530702', '古城区', '530700');
INSERT INTO `areainfo` VALUES ('530721', '玉龙纳西族自治县', '530700');
INSERT INTO `areainfo` VALUES ('530722', '永胜县', '530700');
INSERT INTO `areainfo` VALUES ('530723', '华坪县', '530700');
INSERT INTO `areainfo` VALUES ('530724', '宁蒗彝族自治县', '530700');
INSERT INTO `areainfo` VALUES ('530800', '普洱市', '530000');
INSERT INTO `areainfo` VALUES ('530801', '市辖区', '530800');
INSERT INTO `areainfo` VALUES ('530802', '思茅区', '530800');
INSERT INTO `areainfo` VALUES ('530821', '宁洱哈尼族彝族自治县', '530800');
INSERT INTO `areainfo` VALUES ('530822', '墨江哈尼族自治县', '530800');
INSERT INTO `areainfo` VALUES ('530823', '景东彝族自治县', '530800');
INSERT INTO `areainfo` VALUES ('530824', '景谷傣族彝族自治县', '530800');
INSERT INTO `areainfo` VALUES ('530825', '镇沅彝族哈尼族拉祜族自治县', '530800');
INSERT INTO `areainfo` VALUES ('530826', '江城哈尼族彝族自治县', '530800');
INSERT INTO `areainfo` VALUES ('530827', '孟连傣族拉祜族佤族自治县', '530800');
INSERT INTO `areainfo` VALUES ('530828', '澜沧拉祜族自治县', '530800');
INSERT INTO `areainfo` VALUES ('530829', '西盟佤族自治县', '530800');
INSERT INTO `areainfo` VALUES ('530900', '临沧市', '530000');
INSERT INTO `areainfo` VALUES ('530901', '市辖区', '530900');
INSERT INTO `areainfo` VALUES ('530902', '临翔区', '530900');
INSERT INTO `areainfo` VALUES ('530921', '凤庆县', '530900');
INSERT INTO `areainfo` VALUES ('530922', '云县', '530900');
INSERT INTO `areainfo` VALUES ('530923', '永德县', '530900');
INSERT INTO `areainfo` VALUES ('530924', '镇康县', '530900');
INSERT INTO `areainfo` VALUES ('530925', '双江拉祜族佤族布朗族傣族自治县', '530900');
INSERT INTO `areainfo` VALUES ('530926', '耿马傣族佤族自治县', '530900');
INSERT INTO `areainfo` VALUES ('530927', '沧源佤族自治县', '530900');
INSERT INTO `areainfo` VALUES ('532300', '楚雄彝族自治州', '530000');
INSERT INTO `areainfo` VALUES ('532301', '楚雄市', '532300');
INSERT INTO `areainfo` VALUES ('532322', '双柏县', '532300');
INSERT INTO `areainfo` VALUES ('532323', '牟定县', '532300');
INSERT INTO `areainfo` VALUES ('532324', '南华县', '532300');
INSERT INTO `areainfo` VALUES ('532325', '姚安县', '532300');
INSERT INTO `areainfo` VALUES ('532326', '大姚县', '532300');
INSERT INTO `areainfo` VALUES ('532327', '永仁县', '532300');
INSERT INTO `areainfo` VALUES ('532328', '元谋县', '532300');
INSERT INTO `areainfo` VALUES ('532329', '武定县', '532300');
INSERT INTO `areainfo` VALUES ('532331', '禄丰县', '532300');
INSERT INTO `areainfo` VALUES ('532500', '红河哈尼族彝族自治州', '530000');
INSERT INTO `areainfo` VALUES ('532501', '个旧市', '532500');
INSERT INTO `areainfo` VALUES ('532502', '开远市', '532500');
INSERT INTO `areainfo` VALUES ('532503', '蒙自市', '532500');
INSERT INTO `areainfo` VALUES ('532504', '弥勒市', '532500');
INSERT INTO `areainfo` VALUES ('532523', '屏边苗族自治县', '532500');
INSERT INTO `areainfo` VALUES ('532524', '建水县', '532500');
INSERT INTO `areainfo` VALUES ('532525', '石屏县', '532500');
INSERT INTO `areainfo` VALUES ('532527', '泸西县', '532500');
INSERT INTO `areainfo` VALUES ('532528', '元阳县', '532500');
INSERT INTO `areainfo` VALUES ('532529', '红河县', '532500');
INSERT INTO `areainfo` VALUES ('532530', '金平苗族瑶族傣族自治县', '532500');
INSERT INTO `areainfo` VALUES ('532531', '绿春县', '532500');
INSERT INTO `areainfo` VALUES ('532532', '河口瑶族自治县', '532500');
INSERT INTO `areainfo` VALUES ('532600', '文山壮族苗族自治州', '530000');
INSERT INTO `areainfo` VALUES ('532601', '文山市', '532600');
INSERT INTO `areainfo` VALUES ('532622', '砚山县', '532600');
INSERT INTO `areainfo` VALUES ('532623', '西畴县', '532600');
INSERT INTO `areainfo` VALUES ('532624', '麻栗坡县', '532600');
INSERT INTO `areainfo` VALUES ('532625', '马关县', '532600');
INSERT INTO `areainfo` VALUES ('532626', '丘北县', '532600');
INSERT INTO `areainfo` VALUES ('532627', '广南县', '532600');
INSERT INTO `areainfo` VALUES ('532628', '富宁县', '532600');
INSERT INTO `areainfo` VALUES ('532800', '西双版纳傣族自治州', '530000');
INSERT INTO `areainfo` VALUES ('532801', '景洪市', '532800');
INSERT INTO `areainfo` VALUES ('532822', '勐海县', '532800');
INSERT INTO `areainfo` VALUES ('532823', '勐腊县', '532800');
INSERT INTO `areainfo` VALUES ('532900', '大理白族自治州', '530000');
INSERT INTO `areainfo` VALUES ('532901', '大理市', '532900');
INSERT INTO `areainfo` VALUES ('532922', '漾濞彝族自治县', '532900');
INSERT INTO `areainfo` VALUES ('532923', '祥云县', '532900');
INSERT INTO `areainfo` VALUES ('532924', '宾川县', '532900');
INSERT INTO `areainfo` VALUES ('532925', '弥渡县', '532900');
INSERT INTO `areainfo` VALUES ('532926', '南涧彝族自治县', '532900');
INSERT INTO `areainfo` VALUES ('532927', '巍山彝族回族自治县', '532900');
INSERT INTO `areainfo` VALUES ('532928', '永平县', '532900');
INSERT INTO `areainfo` VALUES ('532929', '云龙县', '532900');
INSERT INTO `areainfo` VALUES ('532930', '洱源县', '532900');
INSERT INTO `areainfo` VALUES ('532931', '剑川县', '532900');
INSERT INTO `areainfo` VALUES ('532932', '鹤庆县', '532900');
INSERT INTO `areainfo` VALUES ('533100', '德宏傣族景颇族自治州', '530000');
INSERT INTO `areainfo` VALUES ('533102', '瑞丽市', '533100');
INSERT INTO `areainfo` VALUES ('533103', '芒市', '533100');
INSERT INTO `areainfo` VALUES ('533122', '梁河县', '533100');
INSERT INTO `areainfo` VALUES ('533123', '盈江县', '533100');
INSERT INTO `areainfo` VALUES ('533124', '陇川县', '533100');
INSERT INTO `areainfo` VALUES ('533300', '怒江傈僳族自治州', '530000');
INSERT INTO `areainfo` VALUES ('533301', '泸水市', '533300');
INSERT INTO `areainfo` VALUES ('533323', '福贡县', '533300');
INSERT INTO `areainfo` VALUES ('533324', '贡山独龙族怒族自治县', '533300');
INSERT INTO `areainfo` VALUES ('533325', '兰坪白族普米族自治县', '533300');
INSERT INTO `areainfo` VALUES ('533400', '迪庆藏族自治州', '530000');
INSERT INTO `areainfo` VALUES ('533401', '香格里拉市', '533400');
INSERT INTO `areainfo` VALUES ('533422', '德钦县', '533400');
INSERT INTO `areainfo` VALUES ('533423', '维西傈僳族自治县', '533400');
INSERT INTO `areainfo` VALUES ('540000', '西藏自治区', NULL);
INSERT INTO `areainfo` VALUES ('540100', '拉萨市', '540000');
INSERT INTO `areainfo` VALUES ('540101', '市辖区', '540100');
INSERT INTO `areainfo` VALUES ('540102', '城关区', '540100');
INSERT INTO `areainfo` VALUES ('540103', '堆龙德庆区', '540100');
INSERT INTO `areainfo` VALUES ('540121', '林周县', '540100');
INSERT INTO `areainfo` VALUES ('540122', '当雄县', '540100');
INSERT INTO `areainfo` VALUES ('540123', '尼木县', '540100');
INSERT INTO `areainfo` VALUES ('540124', '曲水县', '540100');
INSERT INTO `areainfo` VALUES ('540126', '达孜县', '540100');
INSERT INTO `areainfo` VALUES ('540127', '墨竹工卡县', '540100');
INSERT INTO `areainfo` VALUES ('540200', '日喀则市', '540000');
INSERT INTO `areainfo` VALUES ('540202', '桑珠孜区', '540200');
INSERT INTO `areainfo` VALUES ('540221', '南木林县', '540200');
INSERT INTO `areainfo` VALUES ('540222', '江孜县', '540200');
INSERT INTO `areainfo` VALUES ('540223', '定日县', '540200');
INSERT INTO `areainfo` VALUES ('540224', '萨迦县', '540200');
INSERT INTO `areainfo` VALUES ('540225', '拉孜县', '540200');
INSERT INTO `areainfo` VALUES ('540226', '昂仁县', '540200');
INSERT INTO `areainfo` VALUES ('540227', '谢通门县', '540200');
INSERT INTO `areainfo` VALUES ('540228', '白朗县', '540200');
INSERT INTO `areainfo` VALUES ('540229', '仁布县', '540200');
INSERT INTO `areainfo` VALUES ('540230', '康马县', '540200');
INSERT INTO `areainfo` VALUES ('540231', '定结县', '540200');
INSERT INTO `areainfo` VALUES ('540232', '仲巴县', '540200');
INSERT INTO `areainfo` VALUES ('540233', '亚东县', '540200');
INSERT INTO `areainfo` VALUES ('540234', '吉隆县', '540200');
INSERT INTO `areainfo` VALUES ('540235', '聂拉木县', '540200');
INSERT INTO `areainfo` VALUES ('540236', '萨嘎县', '540200');
INSERT INTO `areainfo` VALUES ('540237', '岗巴县', '540200');
INSERT INTO `areainfo` VALUES ('540300', '昌都市', '540000');
INSERT INTO `areainfo` VALUES ('540302', '卡若区', '540300');
INSERT INTO `areainfo` VALUES ('540321', '江达县', '540300');
INSERT INTO `areainfo` VALUES ('540322', '贡觉县', '540300');
INSERT INTO `areainfo` VALUES ('540323', '类乌齐县', '540300');
INSERT INTO `areainfo` VALUES ('540324', '丁青县', '540300');
INSERT INTO `areainfo` VALUES ('540325', '察雅县', '540300');
INSERT INTO `areainfo` VALUES ('540326', '八宿县', '540300');
INSERT INTO `areainfo` VALUES ('540327', '左贡县', '540300');
INSERT INTO `areainfo` VALUES ('540328', '芒康县', '540300');
INSERT INTO `areainfo` VALUES ('540329', '洛隆县', '540300');
INSERT INTO `areainfo` VALUES ('540330', '边坝县', '540300');
INSERT INTO `areainfo` VALUES ('540400', '林芝市', '540000');
INSERT INTO `areainfo` VALUES ('540402', '巴宜区', '540400');
INSERT INTO `areainfo` VALUES ('540421', '工布江达县', '540400');
INSERT INTO `areainfo` VALUES ('540422', '米林县', '540400');
INSERT INTO `areainfo` VALUES ('540423', '墨脱县', '540400');
INSERT INTO `areainfo` VALUES ('540424', '波密县', '540400');
INSERT INTO `areainfo` VALUES ('540425', '察隅县', '540400');
INSERT INTO `areainfo` VALUES ('540426', '朗县', '540400');
INSERT INTO `areainfo` VALUES ('540500', '山南市', '540000');
INSERT INTO `areainfo` VALUES ('540501', '市辖区', '540500');
INSERT INTO `areainfo` VALUES ('540502', '乃东区', '540500');
INSERT INTO `areainfo` VALUES ('540521', '扎囊县', '540500');
INSERT INTO `areainfo` VALUES ('540522', '贡嘎县', '540500');
INSERT INTO `areainfo` VALUES ('540523', '桑日县', '540500');
INSERT INTO `areainfo` VALUES ('540524', '琼结县', '540500');
INSERT INTO `areainfo` VALUES ('540525', '曲松县', '540500');
INSERT INTO `areainfo` VALUES ('540526', '措美县', '540500');
INSERT INTO `areainfo` VALUES ('540527', '洛扎县', '540500');
INSERT INTO `areainfo` VALUES ('540528', '加查县', '540500');
INSERT INTO `areainfo` VALUES ('540529', '隆子县', '540500');
INSERT INTO `areainfo` VALUES ('540530', '错那县', '540500');
INSERT INTO `areainfo` VALUES ('540531', '浪卡子县', '540500');
INSERT INTO `areainfo` VALUES ('542400', '那曲地区', '540000');
INSERT INTO `areainfo` VALUES ('542421', '那曲县', '542400');
INSERT INTO `areainfo` VALUES ('542422', '嘉黎县', '542400');
INSERT INTO `areainfo` VALUES ('542423', '比如县', '542400');
INSERT INTO `areainfo` VALUES ('542424', '聂荣县', '542400');
INSERT INTO `areainfo` VALUES ('542425', '安多县', '542400');
INSERT INTO `areainfo` VALUES ('542426', '申扎县', '542400');
INSERT INTO `areainfo` VALUES ('542427', '索县', '542400');
INSERT INTO `areainfo` VALUES ('542428', '班戈县', '542400');
INSERT INTO `areainfo` VALUES ('542429', '巴青县', '542400');
INSERT INTO `areainfo` VALUES ('542430', '尼玛县', '542400');
INSERT INTO `areainfo` VALUES ('542431', '双湖县', '542400');
INSERT INTO `areainfo` VALUES ('542500', '阿里地区', '540000');
INSERT INTO `areainfo` VALUES ('542521', '普兰县', '542500');
INSERT INTO `areainfo` VALUES ('542522', '札达县', '542500');
INSERT INTO `areainfo` VALUES ('542523', '噶尔县', '542500');
INSERT INTO `areainfo` VALUES ('542524', '日土县', '542500');
INSERT INTO `areainfo` VALUES ('542525', '革吉县', '542500');
INSERT INTO `areainfo` VALUES ('542526', '改则县', '542500');
INSERT INTO `areainfo` VALUES ('542527', '措勤县', '542500');
INSERT INTO `areainfo` VALUES ('610000', '陕西省', NULL);
INSERT INTO `areainfo` VALUES ('610100', '西安市', '610000');
INSERT INTO `areainfo` VALUES ('610101', '市辖区', '610100');
INSERT INTO `areainfo` VALUES ('610102', '新城区', '610100');
INSERT INTO `areainfo` VALUES ('610103', '碑林区', '610100');
INSERT INTO `areainfo` VALUES ('610104', '莲湖区', '610100');
INSERT INTO `areainfo` VALUES ('610111', '灞桥区', '610100');
INSERT INTO `areainfo` VALUES ('610112', '未央区', '610100');
INSERT INTO `areainfo` VALUES ('610113', '雁塔区', '610100');
INSERT INTO `areainfo` VALUES ('610114', '阎良区', '610100');
INSERT INTO `areainfo` VALUES ('610115', '临潼区', '610100');
INSERT INTO `areainfo` VALUES ('610116', '长安区', '610100');
INSERT INTO `areainfo` VALUES ('610117', '高陵区', '610100');
INSERT INTO `areainfo` VALUES ('610122', '蓝田县', '610100');
INSERT INTO `areainfo` VALUES ('610124', '周至县', '610100');
INSERT INTO `areainfo` VALUES ('610125', '户县', '610100');
INSERT INTO `areainfo` VALUES ('610200', '铜川市', '610000');
INSERT INTO `areainfo` VALUES ('610201', '市辖区', '610200');
INSERT INTO `areainfo` VALUES ('610202', '王益区', '610200');
INSERT INTO `areainfo` VALUES ('610203', '印台区', '610200');
INSERT INTO `areainfo` VALUES ('610204', '耀州区', '610200');
INSERT INTO `areainfo` VALUES ('610222', '宜君县', '610200');
INSERT INTO `areainfo` VALUES ('610300', '宝鸡市', '610000');
INSERT INTO `areainfo` VALUES ('610301', '市辖区', '610300');
INSERT INTO `areainfo` VALUES ('610302', '渭滨区', '610300');
INSERT INTO `areainfo` VALUES ('610303', '金台区', '610300');
INSERT INTO `areainfo` VALUES ('610304', '陈仓区', '610300');
INSERT INTO `areainfo` VALUES ('610322', '凤翔县', '610300');
INSERT INTO `areainfo` VALUES ('610323', '岐山县', '610300');
INSERT INTO `areainfo` VALUES ('610324', '扶风县', '610300');
INSERT INTO `areainfo` VALUES ('610326', '眉县', '610300');
INSERT INTO `areainfo` VALUES ('610327', '陇县', '610300');
INSERT INTO `areainfo` VALUES ('610328', '千阳县', '610300');
INSERT INTO `areainfo` VALUES ('610329', '麟游县', '610300');
INSERT INTO `areainfo` VALUES ('610330', '凤县', '610300');
INSERT INTO `areainfo` VALUES ('610331', '太白县', '610300');
INSERT INTO `areainfo` VALUES ('610400', '咸阳市', '610000');
INSERT INTO `areainfo` VALUES ('610401', '市辖区', '610400');
INSERT INTO `areainfo` VALUES ('610402', '秦都区', '610400');
INSERT INTO `areainfo` VALUES ('610403', '杨陵区', '610400');
INSERT INTO `areainfo` VALUES ('610404', '渭城区', '610400');
INSERT INTO `areainfo` VALUES ('610422', '三原县', '610400');
INSERT INTO `areainfo` VALUES ('610423', '泾阳县', '610400');
INSERT INTO `areainfo` VALUES ('610424', '乾县', '610400');
INSERT INTO `areainfo` VALUES ('610425', '礼泉县', '610400');
INSERT INTO `areainfo` VALUES ('610426', '永寿县', '610400');
INSERT INTO `areainfo` VALUES ('610427', '彬县', '610400');
INSERT INTO `areainfo` VALUES ('610428', '长武县', '610400');
INSERT INTO `areainfo` VALUES ('610429', '旬邑县', '610400');
INSERT INTO `areainfo` VALUES ('610430', '淳化县', '610400');
INSERT INTO `areainfo` VALUES ('610431', '武功县', '610400');
INSERT INTO `areainfo` VALUES ('610481', '兴平市', '610400');
INSERT INTO `areainfo` VALUES ('610500', '渭南市', '610000');
INSERT INTO `areainfo` VALUES ('610501', '市辖区', '610500');
INSERT INTO `areainfo` VALUES ('610502', '临渭区', '610500');
INSERT INTO `areainfo` VALUES ('610503', '华州区', '610500');
INSERT INTO `areainfo` VALUES ('610522', '潼关县', '610500');
INSERT INTO `areainfo` VALUES ('610523', '大荔县', '610500');
INSERT INTO `areainfo` VALUES ('610524', '合阳县', '610500');
INSERT INTO `areainfo` VALUES ('610525', '澄城县', '610500');
INSERT INTO `areainfo` VALUES ('610526', '蒲城县', '610500');
INSERT INTO `areainfo` VALUES ('610527', '白水县', '610500');
INSERT INTO `areainfo` VALUES ('610528', '富平县', '610500');
INSERT INTO `areainfo` VALUES ('610581', '韩城市', '610500');
INSERT INTO `areainfo` VALUES ('610582', '华阴市', '610500');
INSERT INTO `areainfo` VALUES ('610600', '延安市', '610000');
INSERT INTO `areainfo` VALUES ('610601', '市辖区', '610600');
INSERT INTO `areainfo` VALUES ('610602', '宝塔区', '610600');
INSERT INTO `areainfo` VALUES ('610603', '安塞区', '610600');
INSERT INTO `areainfo` VALUES ('610621', '延长县', '610600');
INSERT INTO `areainfo` VALUES ('610622', '延川县', '610600');
INSERT INTO `areainfo` VALUES ('610623', '子长县', '610600');
INSERT INTO `areainfo` VALUES ('610625', '志丹县', '610600');
INSERT INTO `areainfo` VALUES ('610626', '吴起县', '610600');
INSERT INTO `areainfo` VALUES ('610627', '甘泉县', '610600');
INSERT INTO `areainfo` VALUES ('610628', '富县', '610600');
INSERT INTO `areainfo` VALUES ('610629', '洛川县', '610600');
INSERT INTO `areainfo` VALUES ('610630', '宜川县', '610600');
INSERT INTO `areainfo` VALUES ('610631', '黄龙县', '610600');
INSERT INTO `areainfo` VALUES ('610632', '黄陵县', '610600');
INSERT INTO `areainfo` VALUES ('610700', '汉中市', '610000');
INSERT INTO `areainfo` VALUES ('610701', '市辖区', '610700');
INSERT INTO `areainfo` VALUES ('610702', '汉台区', '610700');
INSERT INTO `areainfo` VALUES ('610721', '南郑县', '610700');
INSERT INTO `areainfo` VALUES ('610722', '城固县', '610700');
INSERT INTO `areainfo` VALUES ('610723', '洋县', '610700');
INSERT INTO `areainfo` VALUES ('610724', '西乡县', '610700');
INSERT INTO `areainfo` VALUES ('610725', '勉县', '610700');
INSERT INTO `areainfo` VALUES ('610726', '宁强县', '610700');
INSERT INTO `areainfo` VALUES ('610727', '略阳县', '610700');
INSERT INTO `areainfo` VALUES ('610728', '镇巴县', '610700');
INSERT INTO `areainfo` VALUES ('610729', '留坝县', '610700');
INSERT INTO `areainfo` VALUES ('610730', '佛坪县', '610700');
INSERT INTO `areainfo` VALUES ('610800', '榆林市', '610000');
INSERT INTO `areainfo` VALUES ('610801', '市辖区', '610800');
INSERT INTO `areainfo` VALUES ('610802', '榆阳区', '610800');
INSERT INTO `areainfo` VALUES ('610803', '横山区', '610800');
INSERT INTO `areainfo` VALUES ('610821', '神木县', '610800');
INSERT INTO `areainfo` VALUES ('610822', '府谷县', '610800');
INSERT INTO `areainfo` VALUES ('610824', '靖边县', '610800');
INSERT INTO `areainfo` VALUES ('610825', '定边县', '610800');
INSERT INTO `areainfo` VALUES ('610826', '绥德县', '610800');
INSERT INTO `areainfo` VALUES ('610827', '米脂县', '610800');
INSERT INTO `areainfo` VALUES ('610828', '佳县', '610800');
INSERT INTO `areainfo` VALUES ('610829', '吴堡县', '610800');
INSERT INTO `areainfo` VALUES ('610830', '清涧县', '610800');
INSERT INTO `areainfo` VALUES ('610831', '子洲县', '610800');
INSERT INTO `areainfo` VALUES ('610900', '安康市', '610000');
INSERT INTO `areainfo` VALUES ('610901', '市辖区', '610900');
INSERT INTO `areainfo` VALUES ('610902', '汉滨区', '610900');
INSERT INTO `areainfo` VALUES ('610921', '汉阴县', '610900');
INSERT INTO `areainfo` VALUES ('610922', '石泉县', '610900');
INSERT INTO `areainfo` VALUES ('610923', '宁陕县', '610900');
INSERT INTO `areainfo` VALUES ('610924', '紫阳县', '610900');
INSERT INTO `areainfo` VALUES ('610925', '岚皋县', '610900');
INSERT INTO `areainfo` VALUES ('610926', '平利县', '610900');
INSERT INTO `areainfo` VALUES ('610927', '镇坪县', '610900');
INSERT INTO `areainfo` VALUES ('610928', '旬阳县', '610900');
INSERT INTO `areainfo` VALUES ('610929', '白河县', '610900');
INSERT INTO `areainfo` VALUES ('611000', '商洛市', '610000');
INSERT INTO `areainfo` VALUES ('611001', '市辖区', '611000');
INSERT INTO `areainfo` VALUES ('611002', '商州区', '611000');
INSERT INTO `areainfo` VALUES ('611021', '洛南县', '611000');
INSERT INTO `areainfo` VALUES ('611022', '丹凤县', '611000');
INSERT INTO `areainfo` VALUES ('611023', '商南县', '611000');
INSERT INTO `areainfo` VALUES ('611024', '山阳县', '611000');
INSERT INTO `areainfo` VALUES ('611025', '镇安县', '611000');
INSERT INTO `areainfo` VALUES ('611026', '柞水县', '611000');
INSERT INTO `areainfo` VALUES ('620000', '甘肃省', NULL);
INSERT INTO `areainfo` VALUES ('620100', '兰州市', '620000');
INSERT INTO `areainfo` VALUES ('620101', '市辖区', '620100');
INSERT INTO `areainfo` VALUES ('620102', '城关区', '620100');
INSERT INTO `areainfo` VALUES ('620103', '七里河区', '620100');
INSERT INTO `areainfo` VALUES ('620104', '西固区', '620100');
INSERT INTO `areainfo` VALUES ('620105', '安宁区', '620100');
INSERT INTO `areainfo` VALUES ('620111', '红古区', '620100');
INSERT INTO `areainfo` VALUES ('620121', '永登县', '620100');
INSERT INTO `areainfo` VALUES ('620122', '皋兰县', '620100');
INSERT INTO `areainfo` VALUES ('620123', '榆中县', '620100');
INSERT INTO `areainfo` VALUES ('620200', '嘉峪关市', '620000');
INSERT INTO `areainfo` VALUES ('620201', '市辖区', '620200');
INSERT INTO `areainfo` VALUES ('620300', '金昌市', '620000');
INSERT INTO `areainfo` VALUES ('620301', '市辖区', '620300');
INSERT INTO `areainfo` VALUES ('620302', '金川区', '620300');
INSERT INTO `areainfo` VALUES ('620321', '永昌县', '620300');
INSERT INTO `areainfo` VALUES ('620400', '白银市', '620000');
INSERT INTO `areainfo` VALUES ('620401', '市辖区', '620400');
INSERT INTO `areainfo` VALUES ('620402', '白银区', '620400');
INSERT INTO `areainfo` VALUES ('620403', '平川区', '620400');
INSERT INTO `areainfo` VALUES ('620421', '靖远县', '620400');
INSERT INTO `areainfo` VALUES ('620422', '会宁县', '620400');
INSERT INTO `areainfo` VALUES ('620423', '景泰县', '620400');
INSERT INTO `areainfo` VALUES ('620500', '天水市', '620000');
INSERT INTO `areainfo` VALUES ('620501', '市辖区', '620500');
INSERT INTO `areainfo` VALUES ('620502', '秦州区', '620500');
INSERT INTO `areainfo` VALUES ('620503', '麦积区', '620500');
INSERT INTO `areainfo` VALUES ('620521', '清水县', '620500');
INSERT INTO `areainfo` VALUES ('620522', '秦安县', '620500');
INSERT INTO `areainfo` VALUES ('620523', '甘谷县', '620500');
INSERT INTO `areainfo` VALUES ('620524', '武山县', '620500');
INSERT INTO `areainfo` VALUES ('620525', '张家川回族自治县', '620500');
INSERT INTO `areainfo` VALUES ('620600', '武威市', '620000');
INSERT INTO `areainfo` VALUES ('620601', '市辖区', '620600');
INSERT INTO `areainfo` VALUES ('620602', '凉州区', '620600');
INSERT INTO `areainfo` VALUES ('620621', '民勤县', '620600');
INSERT INTO `areainfo` VALUES ('620622', '古浪县', '620600');
INSERT INTO `areainfo` VALUES ('620623', '天祝藏族自治县', '620600');
INSERT INTO `areainfo` VALUES ('620700', '张掖市', '620000');
INSERT INTO `areainfo` VALUES ('620701', '市辖区', '620700');
INSERT INTO `areainfo` VALUES ('620702', '甘州区', '620700');
INSERT INTO `areainfo` VALUES ('620721', '肃南裕固族自治县', '620700');
INSERT INTO `areainfo` VALUES ('620722', '民乐县', '620700');
INSERT INTO `areainfo` VALUES ('620723', '临泽县', '620700');
INSERT INTO `areainfo` VALUES ('620724', '高台县', '620700');
INSERT INTO `areainfo` VALUES ('620725', '山丹县', '620700');
INSERT INTO `areainfo` VALUES ('620800', '平凉市', '620000');
INSERT INTO `areainfo` VALUES ('620801', '市辖区', '620800');
INSERT INTO `areainfo` VALUES ('620802', '崆峒区', '620800');
INSERT INTO `areainfo` VALUES ('620821', '泾川县', '620800');
INSERT INTO `areainfo` VALUES ('620822', '灵台县', '620800');
INSERT INTO `areainfo` VALUES ('620823', '崇信县', '620800');
INSERT INTO `areainfo` VALUES ('620824', '华亭县', '620800');
INSERT INTO `areainfo` VALUES ('620825', '庄浪县', '620800');
INSERT INTO `areainfo` VALUES ('620826', '静宁县', '620800');
INSERT INTO `areainfo` VALUES ('620900', '酒泉市', '620000');
INSERT INTO `areainfo` VALUES ('620901', '市辖区', '620900');
INSERT INTO `areainfo` VALUES ('620902', '肃州区', '620900');
INSERT INTO `areainfo` VALUES ('620921', '金塔县', '620900');
INSERT INTO `areainfo` VALUES ('620922', '瓜州县', '620900');
INSERT INTO `areainfo` VALUES ('620923', '肃北蒙古族自治县', '620900');
INSERT INTO `areainfo` VALUES ('620924', '阿克塞哈萨克族自治县', '620900');
INSERT INTO `areainfo` VALUES ('620981', '玉门市', '620900');
INSERT INTO `areainfo` VALUES ('620982', '敦煌市', '620900');
INSERT INTO `areainfo` VALUES ('621000', '庆阳市', '620000');
INSERT INTO `areainfo` VALUES ('621001', '市辖区', '621000');
INSERT INTO `areainfo` VALUES ('621002', '西峰区', '621000');
INSERT INTO `areainfo` VALUES ('621021', '庆城县', '621000');
INSERT INTO `areainfo` VALUES ('621022', '环县', '621000');
INSERT INTO `areainfo` VALUES ('621023', '华池县', '621000');
INSERT INTO `areainfo` VALUES ('621024', '合水县', '621000');
INSERT INTO `areainfo` VALUES ('621025', '正宁县', '621000');
INSERT INTO `areainfo` VALUES ('621026', '宁县', '621000');
INSERT INTO `areainfo` VALUES ('621027', '镇原县', '621000');
INSERT INTO `areainfo` VALUES ('621100', '定西市', '620000');
INSERT INTO `areainfo` VALUES ('621101', '市辖区', '621100');
INSERT INTO `areainfo` VALUES ('621102', '安定区', '621100');
INSERT INTO `areainfo` VALUES ('621121', '通渭县', '621100');
INSERT INTO `areainfo` VALUES ('621122', '陇西县', '621100');
INSERT INTO `areainfo` VALUES ('621123', '渭源县', '621100');
INSERT INTO `areainfo` VALUES ('621124', '临洮县', '621100');
INSERT INTO `areainfo` VALUES ('621125', '漳县', '621100');
INSERT INTO `areainfo` VALUES ('621126', '岷县', '621100');
INSERT INTO `areainfo` VALUES ('621200', '陇南市', '620000');
INSERT INTO `areainfo` VALUES ('621201', '市辖区', '621200');
INSERT INTO `areainfo` VALUES ('621202', '武都区', '621200');
INSERT INTO `areainfo` VALUES ('621221', '成县', '621200');
INSERT INTO `areainfo` VALUES ('621222', '文县', '621200');
INSERT INTO `areainfo` VALUES ('621223', '宕昌县', '621200');
INSERT INTO `areainfo` VALUES ('621224', '康县', '621200');
INSERT INTO `areainfo` VALUES ('621225', '西和县', '621200');
INSERT INTO `areainfo` VALUES ('621226', '礼县', '621200');
INSERT INTO `areainfo` VALUES ('621227', '徽县', '621200');
INSERT INTO `areainfo` VALUES ('621228', '两当县', '621200');
INSERT INTO `areainfo` VALUES ('622900', '临夏回族自治州', '620000');
INSERT INTO `areainfo` VALUES ('622901', '临夏市', '622900');
INSERT INTO `areainfo` VALUES ('622921', '临夏县', '622900');
INSERT INTO `areainfo` VALUES ('622922', '康乐县', '622900');
INSERT INTO `areainfo` VALUES ('622923', '永靖县', '622900');
INSERT INTO `areainfo` VALUES ('622924', '广河县', '622900');
INSERT INTO `areainfo` VALUES ('622925', '和政县', '622900');
INSERT INTO `areainfo` VALUES ('622926', '东乡族自治县', '622900');
INSERT INTO `areainfo` VALUES ('622927', '积石山保安族东乡族撒拉族自治县', '622900');
INSERT INTO `areainfo` VALUES ('623000', '甘南藏族自治州', '620000');
INSERT INTO `areainfo` VALUES ('623001', '合作市', '623000');
INSERT INTO `areainfo` VALUES ('623021', '临潭县', '623000');
INSERT INTO `areainfo` VALUES ('623022', '卓尼县', '623000');
INSERT INTO `areainfo` VALUES ('623023', '舟曲县', '623000');
INSERT INTO `areainfo` VALUES ('623024', '迭部县', '623000');
INSERT INTO `areainfo` VALUES ('623025', '玛曲县', '623000');
INSERT INTO `areainfo` VALUES ('623026', '碌曲县', '623000');
INSERT INTO `areainfo` VALUES ('623027', '夏河县', '623000');
INSERT INTO `areainfo` VALUES ('630000', '青海省', NULL);
INSERT INTO `areainfo` VALUES ('630100', '西宁市', '630000');
INSERT INTO `areainfo` VALUES ('630101', '市辖区', '630100');
INSERT INTO `areainfo` VALUES ('630102', '城东区', '630100');
INSERT INTO `areainfo` VALUES ('630103', '城中区', '630100');
INSERT INTO `areainfo` VALUES ('630104', '城西区', '630100');
INSERT INTO `areainfo` VALUES ('630105', '城北区', '630100');
INSERT INTO `areainfo` VALUES ('630121', '大通回族土族自治县', '630100');
INSERT INTO `areainfo` VALUES ('630122', '湟中县', '630100');
INSERT INTO `areainfo` VALUES ('630123', '湟源县', '630100');
INSERT INTO `areainfo` VALUES ('630200', '海东市', '630000');
INSERT INTO `areainfo` VALUES ('630202', '乐都区', '630200');
INSERT INTO `areainfo` VALUES ('630203', '平安区', '630200');
INSERT INTO `areainfo` VALUES ('630222', '民和回族土族自治县', '630200');
INSERT INTO `areainfo` VALUES ('630223', '互助土族自治县', '630200');
INSERT INTO `areainfo` VALUES ('630224', '化隆回族自治县', '630200');
INSERT INTO `areainfo` VALUES ('630225', '循化撒拉族自治县', '630200');
INSERT INTO `areainfo` VALUES ('632200', '海北藏族自治州', '630000');
INSERT INTO `areainfo` VALUES ('632221', '门源回族自治县', '632200');
INSERT INTO `areainfo` VALUES ('632222', '祁连县', '632200');
INSERT INTO `areainfo` VALUES ('632223', '海晏县', '632200');
INSERT INTO `areainfo` VALUES ('632224', '刚察县', '632200');
INSERT INTO `areainfo` VALUES ('632300', '黄南藏族自治州', '630000');
INSERT INTO `areainfo` VALUES ('632321', '同仁县', '632300');
INSERT INTO `areainfo` VALUES ('632322', '尖扎县', '632300');
INSERT INTO `areainfo` VALUES ('632323', '泽库县', '632300');
INSERT INTO `areainfo` VALUES ('632324', '河南蒙古族自治县', '632300');
INSERT INTO `areainfo` VALUES ('632500', '海南藏族自治州', '630000');
INSERT INTO `areainfo` VALUES ('632521', '共和县', '632500');
INSERT INTO `areainfo` VALUES ('632522', '同德县', '632500');
INSERT INTO `areainfo` VALUES ('632523', '贵德县', '632500');
INSERT INTO `areainfo` VALUES ('632524', '兴海县', '632500');
INSERT INTO `areainfo` VALUES ('632525', '贵南县', '632500');
INSERT INTO `areainfo` VALUES ('632600', '果洛藏族自治州', '630000');
INSERT INTO `areainfo` VALUES ('632621', '玛沁县', '632600');
INSERT INTO `areainfo` VALUES ('632622', '班玛县', '632600');
INSERT INTO `areainfo` VALUES ('632623', '甘德县', '632600');
INSERT INTO `areainfo` VALUES ('632624', '达日县', '632600');
INSERT INTO `areainfo` VALUES ('632625', '久治县', '632600');
INSERT INTO `areainfo` VALUES ('632626', '玛多县', '632600');
INSERT INTO `areainfo` VALUES ('632700', '玉树藏族自治州', '630000');
INSERT INTO `areainfo` VALUES ('632701', '玉树市', '632700');
INSERT INTO `areainfo` VALUES ('632722', '杂多县', '632700');
INSERT INTO `areainfo` VALUES ('632723', '称多县', '632700');
INSERT INTO `areainfo` VALUES ('632724', '治多县', '632700');
INSERT INTO `areainfo` VALUES ('632725', '囊谦县', '632700');
INSERT INTO `areainfo` VALUES ('632726', '曲麻莱县', '632700');
INSERT INTO `areainfo` VALUES ('632800', '海西蒙古族藏族自治州', '630000');
INSERT INTO `areainfo` VALUES ('632801', '格尔木市', '632800');
INSERT INTO `areainfo` VALUES ('632802', '德令哈市', '632800');
INSERT INTO `areainfo` VALUES ('632821', '乌兰县', '632800');
INSERT INTO `areainfo` VALUES ('632822', '都兰县', '632800');
INSERT INTO `areainfo` VALUES ('632823', '天峻县', '632800');
INSERT INTO `areainfo` VALUES ('640000', '宁夏回族自治区', NULL);
INSERT INTO `areainfo` VALUES ('640100', '银川市', '640000');
INSERT INTO `areainfo` VALUES ('640101', '市辖区', '640100');
INSERT INTO `areainfo` VALUES ('640104', '兴庆区', '640100');
INSERT INTO `areainfo` VALUES ('640105', '西夏区', '640100');
INSERT INTO `areainfo` VALUES ('640106', '金凤区', '640100');
INSERT INTO `areainfo` VALUES ('640121', '永宁县', '640100');
INSERT INTO `areainfo` VALUES ('640122', '贺兰县', '640100');
INSERT INTO `areainfo` VALUES ('640181', '灵武市', '640100');
INSERT INTO `areainfo` VALUES ('640200', '石嘴山市', '640000');
INSERT INTO `areainfo` VALUES ('640201', '市辖区', '640200');
INSERT INTO `areainfo` VALUES ('640202', '大武口区', '640200');
INSERT INTO `areainfo` VALUES ('640205', '惠农区', '640200');
INSERT INTO `areainfo` VALUES ('640221', '平罗县', '640200');
INSERT INTO `areainfo` VALUES ('640300', '吴忠市', '640000');
INSERT INTO `areainfo` VALUES ('640301', '市辖区', '640300');
INSERT INTO `areainfo` VALUES ('640302', '利通区', '640300');
INSERT INTO `areainfo` VALUES ('640303', '红寺堡区', '640300');
INSERT INTO `areainfo` VALUES ('640323', '盐池县', '640300');
INSERT INTO `areainfo` VALUES ('640324', '同心县', '640300');
INSERT INTO `areainfo` VALUES ('640381', '青铜峡市', '640300');
INSERT INTO `areainfo` VALUES ('640400', '固原市', '640000');
INSERT INTO `areainfo` VALUES ('640401', '市辖区', '640400');
INSERT INTO `areainfo` VALUES ('640402', '原州区', '640400');
INSERT INTO `areainfo` VALUES ('640422', '西吉县', '640400');
INSERT INTO `areainfo` VALUES ('640423', '隆德县', '640400');
INSERT INTO `areainfo` VALUES ('640424', '泾源县', '640400');
INSERT INTO `areainfo` VALUES ('640425', '彭阳县', '640400');
INSERT INTO `areainfo` VALUES ('640500', '中卫市', '640000');
INSERT INTO `areainfo` VALUES ('640501', '市辖区', '640500');
INSERT INTO `areainfo` VALUES ('640502', '沙坡头区', '640500');
INSERT INTO `areainfo` VALUES ('640521', '中宁县', '640500');
INSERT INTO `areainfo` VALUES ('640522', '海原县', '640500');
INSERT INTO `areainfo` VALUES ('650000', '新疆维吾尔自治区', NULL);
INSERT INTO `areainfo` VALUES ('650100', '乌鲁木齐市', '650000');
INSERT INTO `areainfo` VALUES ('650101', '市辖区', '650100');
INSERT INTO `areainfo` VALUES ('650102', '天山区', '650100');
INSERT INTO `areainfo` VALUES ('650103', '沙依巴克区', '650100');
INSERT INTO `areainfo` VALUES ('650104', '新市区', '650100');
INSERT INTO `areainfo` VALUES ('650105', '水磨沟区', '650100');
INSERT INTO `areainfo` VALUES ('650106', '头屯河区', '650100');
INSERT INTO `areainfo` VALUES ('650107', '达坂城区', '650100');
INSERT INTO `areainfo` VALUES ('650109', '米东区', '650100');
INSERT INTO `areainfo` VALUES ('650121', '乌鲁木齐县', '650100');
INSERT INTO `areainfo` VALUES ('650200', '克拉玛依市', '650000');
INSERT INTO `areainfo` VALUES ('650201', '市辖区', '650200');
INSERT INTO `areainfo` VALUES ('650202', '独山子区', '650200');
INSERT INTO `areainfo` VALUES ('650203', '克拉玛依区', '650200');
INSERT INTO `areainfo` VALUES ('650204', '白碱滩区', '650200');
INSERT INTO `areainfo` VALUES ('650205', '乌尔禾区', '650200');
INSERT INTO `areainfo` VALUES ('650400', '吐鲁番市', '650000');
INSERT INTO `areainfo` VALUES ('650402', '高昌区', '650400');
INSERT INTO `areainfo` VALUES ('650421', '鄯善县', '650400');
INSERT INTO `areainfo` VALUES ('650422', '托克逊县', '650400');
INSERT INTO `areainfo` VALUES ('650500', '哈密市', '650000');
INSERT INTO `areainfo` VALUES ('650502', '伊州区', '650500');
INSERT INTO `areainfo` VALUES ('650521', '巴里坤哈萨克自治县', '650500');
INSERT INTO `areainfo` VALUES ('650522', '伊吾县', '650500');
INSERT INTO `areainfo` VALUES ('652300', '昌吉回族自治州', '650000');
INSERT INTO `areainfo` VALUES ('652301', '昌吉市', '652300');
INSERT INTO `areainfo` VALUES ('652302', '阜康市', '652300');
INSERT INTO `areainfo` VALUES ('652323', '呼图壁县', '652300');
INSERT INTO `areainfo` VALUES ('652324', '玛纳斯县', '652300');
INSERT INTO `areainfo` VALUES ('652325', '奇台县', '652300');
INSERT INTO `areainfo` VALUES ('652327', '吉木萨尔县', '652300');
INSERT INTO `areainfo` VALUES ('652328', '木垒哈萨克自治县', '652300');
INSERT INTO `areainfo` VALUES ('652700', '博尔塔拉蒙古自治州', '650000');
INSERT INTO `areainfo` VALUES ('652701', '博乐市', '652700');
INSERT INTO `areainfo` VALUES ('652702', '阿拉山口市', '652700');
INSERT INTO `areainfo` VALUES ('652722', '精河县', '652700');
INSERT INTO `areainfo` VALUES ('652723', '温泉县', '652700');
INSERT INTO `areainfo` VALUES ('652800', '巴音郭楞蒙古自治州', '650000');
INSERT INTO `areainfo` VALUES ('652801', '库尔勒市', '652800');
INSERT INTO `areainfo` VALUES ('652822', '轮台县', '652800');
INSERT INTO `areainfo` VALUES ('652823', '尉犁县', '652800');
INSERT INTO `areainfo` VALUES ('652824', '若羌县', '652800');
INSERT INTO `areainfo` VALUES ('652825', '且末县', '652800');
INSERT INTO `areainfo` VALUES ('652826', '焉耆回族自治县', '652800');
INSERT INTO `areainfo` VALUES ('652827', '和静县', '652800');
INSERT INTO `areainfo` VALUES ('652828', '和硕县', '652800');
INSERT INTO `areainfo` VALUES ('652829', '博湖县', '652800');
INSERT INTO `areainfo` VALUES ('652900', '阿克苏地区', '650000');
INSERT INTO `areainfo` VALUES ('652901', '阿克苏市', '652900');
INSERT INTO `areainfo` VALUES ('652922', '温宿县', '652900');
INSERT INTO `areainfo` VALUES ('652923', '库车县', '652900');
INSERT INTO `areainfo` VALUES ('652924', '沙雅县', '652900');
INSERT INTO `areainfo` VALUES ('652925', '新和县', '652900');
INSERT INTO `areainfo` VALUES ('652926', '拜城县', '652900');
INSERT INTO `areainfo` VALUES ('652927', '乌什县', '652900');
INSERT INTO `areainfo` VALUES ('652928', '阿瓦提县', '652900');
INSERT INTO `areainfo` VALUES ('652929', '柯坪县', '652900');
INSERT INTO `areainfo` VALUES ('653000', '克孜勒苏柯尔克孜自治州', '650000');
INSERT INTO `areainfo` VALUES ('653001', '阿图什市', '653000');
INSERT INTO `areainfo` VALUES ('653022', '阿克陶县', '653000');
INSERT INTO `areainfo` VALUES ('653023', '阿合奇县', '653000');
INSERT INTO `areainfo` VALUES ('653024', '乌恰县', '653000');
INSERT INTO `areainfo` VALUES ('653100', '喀什地区', '650000');
INSERT INTO `areainfo` VALUES ('653101', '喀什市', '653100');
INSERT INTO `areainfo` VALUES ('653121', '疏附县', '653100');
INSERT INTO `areainfo` VALUES ('653122', '疏勒县', '653100');
INSERT INTO `areainfo` VALUES ('653123', '英吉沙县', '653100');
INSERT INTO `areainfo` VALUES ('653124', '泽普县', '653100');
INSERT INTO `areainfo` VALUES ('653125', '莎车县', '653100');
INSERT INTO `areainfo` VALUES ('653126', '叶城县', '653100');
INSERT INTO `areainfo` VALUES ('653127', '麦盖提县', '653100');
INSERT INTO `areainfo` VALUES ('653128', '岳普湖县', '653100');
INSERT INTO `areainfo` VALUES ('653129', '伽师县', '653100');
INSERT INTO `areainfo` VALUES ('653130', '巴楚县', '653100');
INSERT INTO `areainfo` VALUES ('653131', '塔什库尔干塔吉克自治县', '653100');
INSERT INTO `areainfo` VALUES ('653200', '和田地区', '650000');
INSERT INTO `areainfo` VALUES ('653201', '和田市', '653200');
INSERT INTO `areainfo` VALUES ('653221', '和田县', '653200');
INSERT INTO `areainfo` VALUES ('653222', '墨玉县', '653200');
INSERT INTO `areainfo` VALUES ('653223', '皮山县', '653200');
INSERT INTO `areainfo` VALUES ('653224', '洛浦县', '653200');
INSERT INTO `areainfo` VALUES ('653225', '策勒县', '653200');
INSERT INTO `areainfo` VALUES ('653226', '于田县', '653200');
INSERT INTO `areainfo` VALUES ('653227', '民丰县', '653200');
INSERT INTO `areainfo` VALUES ('654000', '伊犁哈萨克自治州', '650000');
INSERT INTO `areainfo` VALUES ('654002', '伊宁市', '654000');
INSERT INTO `areainfo` VALUES ('654003', '奎屯市', '654000');
INSERT INTO `areainfo` VALUES ('654004', '霍尔果斯市', '654000');
INSERT INTO `areainfo` VALUES ('654021', '伊宁县', '654000');
INSERT INTO `areainfo` VALUES ('654022', '察布查尔锡伯自治县', '654000');
INSERT INTO `areainfo` VALUES ('654023', '霍城县', '654000');
INSERT INTO `areainfo` VALUES ('654024', '巩留县', '654000');
INSERT INTO `areainfo` VALUES ('654025', '新源县', '654000');
INSERT INTO `areainfo` VALUES ('654026', '昭苏县', '654000');
INSERT INTO `areainfo` VALUES ('654027', '特克斯县', '654000');
INSERT INTO `areainfo` VALUES ('654028', '尼勒克县', '654000');
INSERT INTO `areainfo` VALUES ('654200', '塔城地区', '650000');
INSERT INTO `areainfo` VALUES ('654201', '塔城市', '654200');
INSERT INTO `areainfo` VALUES ('654202', '乌苏市', '654200');
INSERT INTO `areainfo` VALUES ('654221', '额敏县', '654200');
INSERT INTO `areainfo` VALUES ('654223', '沙湾县', '654200');
INSERT INTO `areainfo` VALUES ('654224', '托里县', '654200');
INSERT INTO `areainfo` VALUES ('654225', '裕民县', '654200');
INSERT INTO `areainfo` VALUES ('654226', '和布克赛尔蒙古自治县', '654200');
INSERT INTO `areainfo` VALUES ('654300', '阿勒泰地区', '650000');
INSERT INTO `areainfo` VALUES ('654301', '阿勒泰市', '654300');
INSERT INTO `areainfo` VALUES ('654321', '布尔津县', '654300');
INSERT INTO `areainfo` VALUES ('654322', '富蕴县', '654300');
INSERT INTO `areainfo` VALUES ('654323', '福海县', '654300');
INSERT INTO `areainfo` VALUES ('654324', '哈巴河县', '654300');
INSERT INTO `areainfo` VALUES ('654325', '青河县', '654300');
INSERT INTO `areainfo` VALUES ('654326', '吉木乃县', '654300');
INSERT INTO `areainfo` VALUES ('659000', '自治区直辖县级行政区划', '650000');
INSERT INTO `areainfo` VALUES ('659001', '石河子市', '659000');
INSERT INTO `areainfo` VALUES ('659002', '阿拉尔市', '659000');
INSERT INTO `areainfo` VALUES ('659003', '图木舒克市', '659000');
INSERT INTO `areainfo` VALUES ('659004', '五家渠市', '659000');
INSERT INTO `areainfo` VALUES ('659006', '铁门关市', '659000');
INSERT INTO `areainfo` VALUES ('710000', '台湾省', NULL);
INSERT INTO `areainfo` VALUES ('810000', '香港特别行政区', NULL);
INSERT INTO `areainfo` VALUES ('820000', '澳门特别行政区', NULL);

Django中创建的模型类,供参考

from django.db import models

class AreaInfo(models.Model):
    atitle = models.CharField(max_length=10)
    aParent = models.ForeignKey('self', null=True, blank=True)