查询titles表中pub_id出现次数超过6次以上的记录
如题``
[解决办法]
select * from titles where pub_id in
(
select pub_id from titles group by pub_id
having count(*)> 6
)
[解决办法]
select pub_id from 表 group by pub_id having count(pub_id)> 6
发布时间: 2012-03-31 13:13:26 作者: rapoo
查询titles表中pub_id出现次数超过6次以上的记录
如题``
[解决办法]
select * from titles where pub_id in
(
select pub_id from titles group by pub_id
having count(*)> 6
)
[解决办法]
select pub_id from 表 group by pub_id having count(pub_id)> 6