时间:2021-07-01 10:21:17 帮助过:37人阅读
图表数据展示:
ID_1 | ID_2 |
A |
Oracle |
B |
sqlserver |
C |
DB2 |
DB2 |
C |
Oracle |
A |
sqlserver |
B |
现在判定A,ORACLE与ORACLE,A这种数据为重复数据。
--删除重复数据 DELETE FROM DataInfo A WHERE EXISTS (SELECT 1 FROM DataInfo B WHERE A.ID_1=B.ID_2 AND A.ID_2=B.ID_1) AND A.ID_1>A.ID_2 ORDER BY ID_2
【DB2】经典SQL写法
标签:back 表数据 class com 写法 .com 复数 alt src