DataSet ds =newDataSet();using (OleDbConnection connection =newOleDbConnection(connectionString))using (OleDbCommand command =newOleDbCommand(query, connection))using (OleDbDataAdapter adapter =newOleDbDataAdapter(command)){ adapter.Fill(ds,"tablename");}return ds;然后直接用ds.tables["tablesname"]就可以了