mysql多表查询
Posted 影响力
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql多表查询相关的知识,希望对你有一定的参考价值。
select area from areas where cityid=(select cityid from cities where city like ‘杭州%‘) and id!=(select min(id) from areas where cityid=(select cityid from cities where city like ‘杭州%‘)); select area from areas where cityid=(select cityid from cities where id=(select min(id) from cities where provinceid=(select provinceid from provinces where province like ‘上海%‘)));
以上是关于mysql多表查询的主要内容,如果未能解决你的问题,请参考以下文章