使用另一个表中更新的数据创建临时表的最佳方法
我正在更新永久表,并且需要另一个临时表,其中包含已在永久表中更新的记录。最好的方法是什么?
I am updating a permanent table and I need to have another temp table with those records which have been updated in the permanent table. What is the best way to do it ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用OUTPUT 子句
Use the OUTPUT clause
使用 OUTPUT 子句,或使用触发器来执行此类任务。
Either use OUTPUT clause, or use triggers for such a task.