L. *_*nda 55
试试这个:
(select * from T1 minus select * from T2) -- all rows that are in T1 but not in T2
union all
(select * from T2 minus select * from T1) -- all rows that are in T2 but not in T1
;
Run Code Online (Sandbox Code Playgroud)
没有外部工具.没有性能问题union all
.
max*_*yfc 13
您可以尝试使用set操作:MINUS
和INTERSECT
有关更多详细信息,请参见此处:http: //oreilly.com/catalog/mastorasql/chapter/ch07.html
归档时间: |
|
查看次数: |
113522 次 |
最近记录: |