求一份中国五级行政区域 SQL,不是省市县三级! [ 2.0 版本 ]
同题目,求一份 sql 数据表啊,找半天都是 csdn 要金币的
zcx147716565 补充于 2018-12-05 10:03
嘿嘿,已经有大佬免费提供给我了,现在求一份工作岗位数据表,例如岗位编码2060391,对应岗位名称2060391
共 3 个回答
-
CREATE TABLE IF NOT EXISTS `province` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `city` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, `province_id` INT(11) NOT NULL, PRIMARY KEY (`id`), FOREIGN KEY (`province_id`) REFERENCES `province`(`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `county` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, `city_id` INT(11) NOT NULL, PRIMARY KEY (`id`), FOREIGN KEY (`city_id`) REFERENCES `city`(`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `town` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, `county_id` INT(11) NOT NULL, PRIMARY KEY (`id`), FOREIGN KEY (`county_id`) REFERENCES `county`(`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `village` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, `town_id` INT(11) NOT NULL, PRIMARY KEY (`id`), FOREIGN KEY (`town_id`) REFERENCES `town`(`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
zcx147716565 广州
注册时间:2017-03-10
最后登录:2021-01-12
在线时长:69小时38分
最后登录:2021-01-12
在线时长:69小时38分
- 粉丝9
- 金钱12500
- 威望20
- 积分13390