SQL Server 回滚事务

发布于 2024-10-26 16:57:45 字数 44 浏览 3 评论 0原文

ROLLBACK 命令会删除事务期间创建的临时表吗?

谢谢

Will the ROLLBACK command drop a temporary table which is created during the transaction ?

Thanks

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沧笙踏歌 2024-11-02 16:57:45

是的,它还会回滚在删除该临时表之前已在该临时表上完成的所有工作。您可以通过在创建事务之前创建临时表或使用不受事务影响的表变量来防止这种情况。

Yes, it will also roll back all work that has been done on that temp table before it is dropped. You can prevent this by creating the temp table before the transaction is created, or use a table variable which is not affected by the transaction.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文