SQL语句三表联查

两表联查: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不仅不对,还执行慢。

posted @ 2020-12-10 23:35  ~码铃薯~  阅读(11323)  评论(0编辑  收藏  举报