MySQL之表的内外连接、索引、事务、视图总结

表的内外连接 内连接 内连接实际上就是利用where子句对两种表形成的笛卡儿积进行筛选。 eg: select ename,dname from emp,dept where emp.deptno=dept.deptno and ename=’smith’; 外连接 1. 左外连接:联合查询中,左侧的表完全显示 语法:select 字段 from 表名1 left join 表名2 on 连接条件
相关文章
相关标签/搜索