-- ---- 删除表格并重新创建dict_division表格,用于存储中国所有行政区划的代码和名称信息。
CREATE TABLE dict_division (
code varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
name varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (code) USING BTREE
) ENGINE=InnoDB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=Dynamic;
-- ---- 将中国所有行政区划的代码和名称信息插入dict_division表格中。
INSERT INTO dict_division (code, name)
VALUES
('110000', '北京市'),
('110100', '北京市辖区'),
('110101', '东城区'),
('110102', '西城区'),
('110105', '朝阳区'),
('110106', '丰台区'),
('110107', '石景山区'),
('110108', '海淀区'),
('110109', '门头沟区'),
('110111', '房山区'),
('110112', '通州区'),
('110113', '顺义区'),
...
暂无评论