有两张表,一张表名为 A 另外一张名为 B,两张表中都有一个 userId 字段,请问如何用MySQL语句获取两张表中userId的条目数
两个表分别count让后再union拼起来
count()函数
请问怎么写呢
select count(userid) from A,B