时间:2021-07-01 10:21:17 帮助过:293人阅读
比如A表的m列z有值(1,2,3,4,5),B表的n列有值(3,4,5,6,7,8)。要查找出(3,4,5,)三个值。
select t1.* from (select LCH,LGH from SJCJ_GLTSHY where JLSJ >=to_date(‘2020-05-12 00:00:00‘, ‘yyyy-mm-dd HH24:MI:SS‘) minus select LCH,LGH from SJCJ_GLTSHY_BAK where JLSJ >=to_date(‘2020-05-12 00:00:00‘, ‘yyyy-mm-dd HH24:MI:SS‘)) t1 union select t2.* from (select LCH,LGH from SJCJ_GLTSHY_BAK where JLSJ >=to_date(‘2020-05-12 00:00:00‘, ‘yyyy-mm-dd HH24:MI:SS‘) minus select LCH,LGH from SJCJ_GLTSHY where JLSJ >=to_date(‘2020-05-12 00:00:00‘, ‘yyyy-mm-dd HH24:MI:SS‘)) t2
在ORACLE中,如何比较两个表的数据是否相同,查询两个表内容不一致的内容
标签:查询 https target tle ref title hid tps nbsp