文章目录 连接查询内连接等值连接非等值连接自连接 外连接左外连接右外连接全外连接(mysql不支持) 交叉连接 连接查询 select 查询列表 from 表1 别名 【连接类型】 join 表2 别名 on 连接条件 【where 筛选条件】 【group by 分组】 【having 筛选条件】 【order by 排序列表】 内连接 select 查询列表 from 表1 别名 inner join 表2 别名 on 连接条件; 等值连接 非等值连接 自连接 外连接 两个表的连接可能一个表中有,一个表中没有 左外连接 右外连接 全外连接(mysql不支持) 交叉连接