标签:多少 HERE key for font rom 广州 pre 社区
id
ptitle
id
ctitle
proid
id
atitle
pid
create table areas( id int primary key, atitle varchar(20), pid int, foreign key(pid) references areas(id) );
source areas.sql;
select city.* from areas as city inner join areas as province on city.pid=province.id where province.atitle=‘山西省‘;
select dis.*,dis2.* from areas as dis inner join areas as city on city.id=dis.pid left join areas as dis2 on dis.id=dis2.pid where city.atitle=‘广州市‘;
标签:多少 HERE key for font rom 广州 pre 社区
原文地址:https://www.cnblogs.com/wuzaipei/p/9819692.html