Hi
I have a following problem:
trying to utilize multiple query feature but getting error about incorrect sql syntax (ORA-00933). I want to pass few sql queries into one command, then execute reader, fetch data from first query, then call NextResult and so on. Here is equivalent code:
- string query = @"
- SELECT * FROM Customers;
- SELECT * FROM Orders;
- SELECT * FROM Products;
- ";
- var command = conn.CreateCommand(query);
- using (var reader = command.ExecuteReader())
- {
- while (reader.Read())
- {
- // Process customer data
- }
- reader.NextResult();
- while (reader.Read())
- {
- // Process order data
- }
- reader.NextResult();
- while (reader.Read())
- {
- // Process product data
- }
- }
The query statements ends with semicolon, tried to remove the last semicolon but with the same error. What is wrong with this code?
Is this feature available in oracle?