oracle查詢某列值只有一條的數據

1.查詢某列值只有一條的數據

select t1.* from  table1 t1 
where t1.所要查詢列 in 
(select t2.所要查詢列 from table1 t2 group by t2.所要查詢列 having count(1)=1);
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章