• ADADADADAD

    mysql使用 union all查询统计总数量[ mysql数据库 ]

    mysql数据库 时间:2024-12-25 09:55:54

    作者:文/会员上传

    简介:

    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(注意这里要取个别名)

    以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。

    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使用 union all查询统计总数量.docx

    将本文的Word文档下载到电脑

    推荐度:

    下载