select * from [yourtable] where ziduan1 in (select ziduan1 from [yourtable] group by ziduan1 having count(ziduan1)>1)
1。select * from [yourtable] where ziduan1 in (select ziduan1 from [yourtable] group by ziduan1 having count(ziduan1)>1) 2。select * from [yourtable] where ziduan2 in (select ziduan2 from [yourtable] group by ziduan1 having count(ziduan2)>1)
select * from [yourtable] where ziduan1 in (select ziduan1 from [yourtable] group by ziduan1 having count(ziduan1)>1) --having 子句
(select ziduan1 from [yourtable] group by ziduan1 having count(ziduan1)>1)
(select ziduan1 from [yourtable] group by ziduan1 having count(ziduan1)>1)
2。select * from [yourtable] where ziduan2 in
(select ziduan2 from [yourtable] group by ziduan1 having count(ziduan2)>1)
(select ziduan1 from [yourtable] group by ziduan1 having count(ziduan1)>1)
--having 子句