我想将另外两个表中的数据插入到数据库表中
每当我运行代码时,它都会返回这个特定的错误
An unhandled exception of type 'MySql.Data.MySqlClient.MySqlException' occurred in MySql.Data.dll - Additional information: Fatal error encountered during command execution.
所指向的
cmd.ExecuteNonQuery();
会出现什么问题吗?
最佳答案
现在可以使用了!!
听起来您的查询在执行期间超时了。您可以尝试设置 cmd.CommandTimeout = 86400;或者您可以尝试创建可能加快 JOIN 速度的索引: CREATE INDEX bilan_siren ON bilan(siren);创建索引 data_siren ON 数据(警报器);
布拉德利·格兰杰的回答
关于c# - 错误: Fatal error encountered attempting to read the resultset,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52406712/