我只想返回有三列的1行
(SELECT count(1) from tests) TestCount,
(select count(1) from customers) CustomerCount,
(select count(1) from patients) PatientCount
Run Code Online (Sandbox Code Playgroud)
请试试:
select
(SELECT count(1) from tests) TestCount,
(select count(1) from customers) CustomerCount,
(select count(1) from patients) PatientCount
from dual;
Run Code Online (Sandbox Code Playgroud)