SQL: Combine Select count(*) from multiple tables

后端 未结 8 635
迷失自我
迷失自我 2020-12-08 13:08

How do you combine multiple select count(*) from different table into one return?

I have a similar sitiuation as this post

but I want one return.

I t

8条回答
  •  遥遥无期
    2020-12-08 14:09

    select 
      (select count(*) from foo) as foo
    , (select count(*) from bar) as bar
    , ...
    

提交回复
热议问题