在sql server 2008中使用update命令之后,我们可以再次使用相同的命令. [英] After using update command in sql server 2008 can we come back on same.

查看:95
本文介绍了在sql server 2008中使用update命令之后,我们可以再次使用相同的命令.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Sql Server 2008,但不幸的是,我使用了错误的更新命令,希望在同一位置恢复运行.
我的命令是:

Hi, I am using Sql Server 2008 and unfortunately i have used a wrong update command i want comeback on same.
My command was:

Update table_name  set column_name= replace(column,'&','and')

推荐答案

(如果您已使用Transaction 在使用更新查询之前,您可以回滚您的事务,反之则为否".

最好在使用这些查询(插入,更新,删除)之前备份表.并使用事务.
if you have used Transaction before using your update query then you can rollback your transactions, other wise "NO".

Better to take backup of your table before using these queries (Insert, update, delete). and also use Transactions.


但是,主席先生,我认为我们可以访问日志文件.因此,这将是一种方法吗?
But Sir, i think we can access log files. So this will be a way to do this?


请参考下面的链接

http://msdn.microsoft.com/en-us/library/ms181299.aspx [ ^ ]
Please refer the below link

http://msdn.microsoft.com/en-us/library/ms181299.aspx[^]


这篇关于在sql server 2008中使用update命令之后,我们可以再次使用相同的命令.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆