📅  最后修改于: 2022-03-11 14:48:49.494000             🧑  作者: Mango
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);
}
}