前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >最新的省市区三级地区 MySQL 表数据

最新的省市区三级地区 MySQL 表数据

作者头像
李昂君
发布2021-12-24 13:55:11
3.1K3
发布2021-12-24 13:55:11
举报
文章被收录于专栏:李昂君

阅读量: 133

以下为代码为省市区的表内容结构

代码语言:javascript
复制
# 创建省信息表

create table if not exists table_china_province (
    id            int auto_increment comment '主键' primary key,
    province_id   int(10)                     not null comment '省id',
    province_name varchar(50) default '' not null comment '省名称',
    constraint province_index unique (province_name) comment '省信息索引'
) comment '省信息表' char set utf8;

# 创建市区信息表

create table if not exists table_china_city
(
    id          int auto_increment comment '主键' primary key,
    city_id     int(10)     not null comment '城市id',
    city_name   varchar(50) not null comment '城市名称',
    province_id int(10)     not null comment '省id',
    constraint city_index unique (city_id, city_name, province_id) comment '城市信息索引'
) comment '城市信息表' char set utf8;

# 创建区县信息表

create table if not exists table_china_area
(
    id        int auto_increment comment '主键' primary key,
    area_id   int(10)     not null comment '区县id',
    area_name varchar(50) not null comment '区县名称',
    city_id   int(10)     not null comment '城市id',
    constraint area_index unique (area_id, area_name, city_id) comment '区县信息索引'
) comment '区县信息表' char set utf8;

以下为省市区sql代码,由于数据过大,请下载查看

info下载

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-7-25 1,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 以下为代码为省市区的表内容结构
  • 以下为省市区sql代码,由于数据过大,请下载查看
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档