Click here to Skip to main content
15,907,328 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two SQL statement

Select * from table1
Select * From table2

In SQL Server i can get two table in one dataset and i am able use this as

dataset.dt(0).row(0).item('A')
dataset.dt(1).row(0).item('A')


How can i achive same functionality in Oracle as database.
Posted

It's the same dataset whether you fill it using an OracleDataReader[^] or an SqlDataReader.

If you want to hide whats going on behind the scenes you use an OracleDataAdapter[^] instead of an OracleDataReader.
 
Share this answer
 
 
Share this answer
 
Comments
Mahesh Devikar 28-Jan-14 23:40pm    
Thank You very much for your reply.

I have one query against above article.

In above article ,Two out cursors are define for two query.

Is it possible to get output of two query in one cursor.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900