0

如何从表列yearBrth中选择count(yearBrth)超过4(例如)

select 
    yearBrth
from 
    users 
where 
    count(yearBrth) > 4
-- group by yearBrth
;
4

1 回答 1

2

利用having

select yearBrth
from users 
group by yearBrth having count(yearBrth) > 3
于 2013-11-14T10:12:58.533 回答