是否可以将以下查询作为一个查询执行?
[码]
select count(*) from tableA;
select count(*) from tableB;
select count(*) from tableC;
select count(*) from tableD;
Run Code Online (Sandbox Code Playgroud)
[/码]
即.结果是这样的
|TablA|TableB|TableC|TableD|
|50 |300 |30 |9|
Run Code Online (Sandbox Code Playgroud)
谢谢
Joh*_*ohn 11
select * from
(select count(*) from tableA),
(select count(*) from tableB),
(select count(*) from tableC),
(select count(*) from tableD);
Run Code Online (Sandbox Code Playgroud)