create table test1( id number, name varchar2(20) ); ,'jack'); ,'jack'); ,'peter'); ,'red'); insert into test1 values(5,'green'); insert into test1 values(6,'green'); 一 查询表中重复数据 1. 使用exists select a.* from test1 a where exists ( select name from ( se…