1.查詢某列值只有一條的數據
select t1.* from table1 t1
where t1.所要查詢列 in
(select t2.所要查詢列 from table1 t2 group by t2.所要查詢列 having count(1)=1);
1.查詢某列值只有一條的數據
select t1.* from table1 t1
where t1.所要查詢列 in
(select t2.所要查詢列 from table1 t2 group by t2.所要查詢列 having count(1)=1);