发布时间:2012-06-01 17:15:19
找到相同的行: SELECT * FROM dept a WHERE ROWID <> (SELECT MAX(ROWID) FROM dept b WHERE a.deptno = b.deptno AND a.dname = b.dname -- Make sure all columns are compared AND a.loc = b.loc); 注释: 如果只找deptno列相同的行,上面的查询可以改为: SELECT * F.........【阅读全文】