Home > database > In the process of oracle stored more than one count () returns the result
In the process of oracle stored more than one count () returns the result
Time:09-30
In the oracle stored procedure has multiple query Select count (1) the from table1 Select count (2) the from table1 Select count (3) the from table1 Select count (4) the from table1 Want to ask next how to return a result through 1, 2, 3, 4, 5 of the query result can be get in Java, use collection what to use?
CodePudding user response:
Select count (*) c1, 't1' tname the from t1 Union all Select count (*) c2, 't2' tname the from t2