一、多表查询
select * from 表名,表名;
select * from 表名,表名 where 条件;
二、内连接
隐式
select 字段列表 from 表1,表2 where 条件;
显示
select 字段列表 from 表1 INNER JOIN 表2 on 条件;


三、外连接
1.左外连接
select 字段列表 from 表1 left [outer] join 表2 on 条件
2.右外连接
select 字段列表 from 表1 right [outer] join 表2 on 条件
!!!!![outer]可以省略!!!!!


四、子查询
1.单行单列
select 字段列表 from 表 where 字段名 = (字段查询)
2.多行单列
select 字段列表 from 表 where 字段名 in (子查询)
3.多行多列
select 字段列表 from (子查询)where 条件



