时间:2010-07-25 18:06:42

标签: php mysql count union

3 个答案:

答案 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;