Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 5 个表(bepd、tirpd、elpd、frpd、kopd)与名为“Up”的同一列,我想从所有表中得出 Up 的总和并在 php 代码中显示它。谁能帮我 ?
select sum(SumUp) from ( select sum(up) as SumUp from Table1 union all select sum(up) from Table2 union all select sum(up) from Table3 union all ... ) SubQueryAlias