社区网站制作,今天最新新闻摘抄,青浦网站设计制作,wordpress浏览插件多表查询 内连接查询 select * from emp,dept where emp.dept_id dept.id;select * from emp join dept on emp.dept_id dept.id; 外连接查询 左外连接:left join on 左表的所有数据,右表有关联的数据就显示,没有就不显示(null&…
多表查询
内连接查询
select * from emp,dept where emp.dept_id = dept.id;
select * from emp join dept on emp.dept_id = dept.id;