最新的省市区三级地区 MySQL 表数据
2023-04-18 16:15:38 时间
阅读量: 133
以下为代码为省市区的表内容结构
# 创建省信息表
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代码,由于数据过大,请下载查看
相关文章
- 直接在代码里面对list集合进行分页
- .NET Framework 4.5新特性详解
- 大数据的简要介绍
- 大数据的由来
- 高斯混合模型的自然梯度变量推理
- timing-wheel 仿Kafka实现的时间轮算法
- 使用Navicat软件连接自建数据库(Linux系统)
- 那一天,我被Redis主从架构支配的恐惧
- Redis 深入了解键的过期时间
- C#使用委托调用实现用户端等待闪屏
- 基于流计算 Oceanus 和 Elasticsearch Service 构建百亿级实时监控系统
- GRAND | 转录调控网络预测数据库
- JFreeChart API中文文档
- 临床相关突变查询数据库
- TIGER | 人类胰岛基因变化查询数据库
- 视频边缘计算网关EasyNVR在视频整体监控解决方案中的应用分析
- Apache Arrow - 大数据在数据湖后的下一个风向标
- 常见的电商数据指标体系
- AKShare-艺人数据-艺人流量价值
- MySQL中多表联合查询与子查询的这些区别,你可能不知道!