
select *from (select id,count(branch_id) as cnt from commuit group by branch_id) as t1 where t1.cn 5
展开全部
什么数据库? 试试这样(把虚拟表的as去掉)?
select * from
(select id,count(branch_id) as cnt from commuit
group by branch_id
) t1 where t1.cn ???
后面还有呢?
select * from
(select id,count(branch_id) as cnt from commuit
group by branch_id
) t1 where t1.cn ???
后面还有呢?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-07-23
展开全部
select *from (select id,count(branch_id) as cnt from commuit group by branch_id) as t1 where t1.cn
中where 后面需要加查询条件的,如where t1.cn=2这样
中where 后面需要加查询条件的,如where t1.cn=2这样
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
select *from (select id,count(branch_id) as cnt from commuit group by id) as t1 where t1.cn即可
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询