Multiple Query

Multiple Query

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:

  1.  string query = @"
  2.         SELECT * FROM Customers;
  3.         SELECT * FROM Orders;
  4.         SELECT * FROM Products;
  5.     ";

  6.     var command = conn.CreateCommand(query);

  7.     using (var reader = command.ExecuteReader())
  8.     {
  9.         while (reader.Read())
  10.         {
  11.             // Process customer data
  12.         }

  13.         reader.NextResult();

  14.         while (reader.Read())
  15.         {
  16.             // Process order data
  17.         }

  18.         reader.NextResult();

  19.         while (reader.Read())
  20.         {
  21.             // Process product data         
  22.         }
  23.     }
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?