如何在oracle中使用leftouter连接仅显示不匹配的行 [英] how to display only the unmatched rows using leftouter join in oracle

查看:48
本文介绍了如何在oracle中使用leftouter连接仅显示不匹配的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..
我正在尝试使用oracle中的leftouter join从表中获取不匹配的记录..但没有得到..所以请整理
谢谢你:)

Hi..
I''m trying to fetch only the unmatched records from to tables using leftouter join in oracle.. but not getting.. so sort out
thank u:)

推荐答案

基于Match_Colname为您提供Table1中Table2中不存在的行
Gives you Rows in Table1 that are not there in Table2 based on Match_Colname
SELECT *
FROM table_name1 T1
LEFT JOIN table_name2 T2
ON T1.Match_Colname=T2.Match_Colname
WHERE T2.Match_Colname IS NULL


这篇关于如何在oracle中使用leftouter连接仅显示不匹配的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆