我很难获得使用OleDBConnection的参数。它应该根据查询字符串选择正确的表。
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = connection;
command.Parameters.Add(new OleDbParameter("@table", table));
command.CommandText = "SELECT [title] from @table ORDER BY [title] ASC";
adapter.SelectCommand = command;
adapter.Fill(dt);
}