add-sql-file

This commit is contained in:
lccsw
2021-07-22 18:14:12 +08:00
parent fd91c0556c
commit b290c687f5
32 changed files with 915 additions and 38 deletions
+17
View File
@@ -0,0 +1,17 @@
-- ----------------------------
-- Title:行政区域表
-- Author:0fun
-- Table:lc_city
-- ---------------------------
drop table if exists lc_area;
create table lc_area(
id int unsigned not null auto_increment comment 'id',
province_id int unsigned not null comment '省id',
province_name varchar(32) not null comment '省名称',
city_id int unsigned not null comment '城市id',
city_name varchar(32) not null comment '城市名称',
county_id int unsigned not null comment '区id',
county_name varchar(32) not null comment '区名称',
primary key(id)
)ENGINE=InnoDB default CHARSET=utf8mb4 COMMENT='行政区域表';
alter table lc_area add firstchar varchar(4) not null default '' comment '城市大写首字母'