【文件属性】:
文件名称:sys_area.sql
文件大小:448KB
文件格式:SQL
更新时间:2022-12-10 10:31:57
行政区划
2018行政区划数据,报表城市,经纬度,拼音,全路径id,直接下载导入mysql数据库中.
province 省
-- 34省市
select id,name,lat,lng,pinyin from sys_area where 1=1
and `level` = 1;
city 市
-- 江西
select id,name,lat,lng,pinyin from sys_area where 1=1
and `level` = 2
and find_in_set('360000',`path`);
region 区/县
-- 九江
select id,name,lat,lng,pinyin from sys_area where 1=1
and `level` = 3
and find_in_set('360400',`path`);