是否可以将以下查询作为一个查询执行?
[代码]
select count(*) from tableA;
select count(*) from tableB;
select count(*) from tableC;
select count(*) from tableD;
[/代码]
IE。结果是这样的
|TablA|TableB|TableC|TableD|
|50 |300 |30 |9|
谢谢
最佳答案
select * from
(select count(*) from tableA),
(select count(*) from tableB),
(select count(*) from tableC),
(select count(*) from tableD);
关于sql - 合并多个 oracle 查询以产生一个结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5899562/