标签:img 含义 引用 广州 复制 分享图片 join too 文件中
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=‘广州市‘;
标签:img 含义 引用 广州 复制 分享图片 join too 文件中
原文地址:https://www.cnblogs.com/wwthuanyu/p/10069555.html