您的位置:首页 > 数据库 > MySQL

如何使用union来聚集查询结果到一个结果集

2016-11-09 23:15 309 查看
select count(1) d from m_pa_info where status=2  

union All select count(1) c from m_org 

union All select count(1) e from m_pa_fans 

union All select count(1) from m_org where org_id='1' 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐