📜  c# 选择 oracle 数据库 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:49.494000             🧑  作者: Mango

代码示例1
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);
     }
 }