难题!求达人解决!!
废话少说,问题如下
--创建测试表
create table test(
num1 number(4),
num2 number(4)
)
--插入数据
insert into test values(1,1);
insert into test values(1,2);
insert into test values(1,3);
insert into test values(2,1);
insert into test values(2,2);
insert into test values(2,3);
insert into test values(3,1);
insert into test values(3,2);
insert into test values(3,3);
--插入重复项
insert into test values(1,1);
insert into test values(1,1);
insert into test values(2,3);
问题:查询所有重复的项.不能使用表内的字段名,如: select * from test where num1=1 and num2=2;
可以使用到任何表上,只需换掉表名即可,可以使用伪列rowid等