dongyaotou

两表联查:select * from A a,B b where a.id=b.id  and a.id=\'\';

三表联查:select * from A a,B b,C c where a.id=b.id and a.id=c.id and a.id=\'\'

一定要让多张表手拉手的连起来成为一个圈,不然写出的SQL不仅不对,还执行慢。

分类:

技术点:

相关文章: