当正在运行的 SQL 查询由于网络连接而中断时会发生什么

发布于 2025-01-17 00:05:00 字数 330 浏览 3 评论 0原文

最近,我正在通过存储过程在 MySql 中将数据从一个表传输到另一个表。 源表的大小相当大,几乎有 50k+ 行。 我的存储过程有很多 JOIN 语句。因此,为了获取我需要的东西,我花了很多时间。

现在,由于一些网络问题,我的互联网突然中断了。 MySql 显示连接错误。当连接恢复时,我检查了我的目标表,当时它像往常一样是空的。 但几个小时后,当我检查目标表时,它填满了我想要的结果。让我告诉你,在连接问题之后,我没有再次运行存储过程,但它仍然被填满。

所以现在我对实际发生的事情有点困惑。有人可以向我澄清一下吗?

Recently, I was doing a data transfer from one table to another in MySql through the Stored Procs.
The size of the Source table is quite large, it has almost 50k+ rows.
And my Stored Proc has a lot of JOIN statements. So to fetch what I need, it was taking a lot of time.

Now suddenly my internet went off due to some network issues. MySql showed me a Connection Error. When the connection came back I checked my Destination table , at that time it was empty as usual.
But after few hours when I checked the Destination table, it was filled with my desired results. Let me tell you after the connection issue I did not run the Stored Proc again, but still it is filled.

So right now I'm a bit confused about what happened actually. Can anyone clarify it to me please?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文