Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Does SELECT (Select...), (Select...) into v1, v2 FROM dual; have any advantages?

SebaVastaNov 23 2021

I have 2 complex queries that each bring one result each.
I.e.
Select C1 INTO V1 from complex_query1;
Select C2 INTO V2 from complex_query2;
Is there any advantage in doing this
SELECT
(Select C1 from complex_query1), (Select C2 from complex_query2)
INTO
v1, v2
FROM dual;
Over 2 separate calls??

Comments
Post Details
Added on Nov 23 2021
9 comments
338 views