查找學生表中存在相同名字的sql語句
select 要查詢的字段或者* from 學生表
where 要查相同數(shù)據(jù)的字段(例如Name) in
(select 要查相同數(shù)據(jù)的字段(例如Name) from 學生表 group by 要查相同數(shù)據(jù)的字段(例如Name) having count(*)>1)
完結(jié)!!!
posted on 2020-12-25 10:41 Wellspring 閱讀(709) 評論(0) 收藏 舉報
select 要查詢的字段或者* from 學生表
where 要查相同數(shù)據(jù)的字段(例如Name) in
(select 要查相同數(shù)據(jù)的字段(例如Name) from 學生表 group by 要查相同數(shù)據(jù)的字段(例如Name) having count(*)>1)
完結(jié)!!!
posted on 2020-12-25 10:41 Wellspring 閱讀(709) 評論(0) 收藏 舉報