Files
liche/sql/common.sql
T
2021-07-22 18:14:25 +08:00

18 lines
924 B
SQL

-- ----------------------------
-- 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 '城市大写首字母'