摘要: left join :左连接,返回左表中所有的记录以及右表中连接字段相等的记录。 right join :右连接,返回右表中所有的记录以及左表中连接字段相等的记录。 inner join: 内连接,又叫等值连接,只返回两个表中连接字段相等的行。 full join:外连接,返回两个表中的行:left 阅读全文
posted @ 2019-02-13 10:16 上台阶 阅读(5411) 评论(0) 推荐(0) 编辑
摘要: 【注意】:Oracle数据库支持full join,mysql是不支持full join的,但仍然可以同过左外连接+ union+右外连接实现 初始化SQL语句: /*join 建表语句*/ /*join 建表语句*/ drop database if exists test; drop datab 阅读全文
posted @ 2019-02-13 09:36 上台阶 阅读(4569) 评论(0) 推荐(1) 编辑