当我尝试执行代码时,它显示了上述错误。
try
{
com.CommandText = "select * from Export";
com.ExecuteReader();
data_mode = "Export";
com.CommandText = "Insert INTO [" + New_access_file + "]." + data_mode + " select * FROM ExportDATA";
com.ExecuteNonQuery();
}
catch
{
data_mode = "Export";
com.CommandText = "SELECT * INTO [" + New_access_file + "]." + data_mode + " FROM ExportDATA";
com.ExecuteReader();
}