标签: php mysql count union
答案 0 :(得分:3)
答案 1 :(得分:2)
答案 2 :(得分:2)
select sum(total) from ( SELECT COUNT(entryid) total FROM rh_entries UNION SELECT COUNT(pentryid) total FROM rh_playerentries WHERE playerid=79 ) as t;