mysql使用 union all查询统计总数量
更新:HHH   时间:2023-1-7


select sum(a.b) as num from (
select count() as b from table_1
union all
select count(
) as b from table_2
) as a(注意这里要取个别名)

返回MySQL数据库教程...