SQL--查询相同字段的数据

select city, state
from state_county_city
where city in (select city from state_county_city group by city having count(1) >= 2)

posted @ 2016-09-20 14:17  盖瑞  阅读(212)  评论(0编辑  收藏  举报