Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# select oracle database

DataSet ds = new DataSet(); 
 using(OracleConnection con  = new OracleConnection(connectionstr))
 {
     using(OracleCommand cmd = con.CreateCommand())
     {
         con.Open();
         cmd.CommandText = "SELECT * FROM all_users";
         OracleDataAdapter adap = new OracleDataAdapter(cmd);
         adap.Fill(ds);
     }
 }
Source by www.oracle.com #
 
PREVIOUS NEXT
Tagged: #select #oracle #database
ADD COMMENT
Topic
Name
8+4 =