开发者

Roll back in SQL

开发者 https://www.devze.com 2022-12-11 00:52 出处:网络
I used rollback concept in my procedure in dom table. After executing, then I ran the table like: select * from dom

I used rollback concept in my procedure in dom table. After executing, then I ran the table like:

select * from dom

bu开发者_Go百科t the query executed continuously and did not stop. How can I stop this? Please help.


From your comment, you have this:

create proc
    dom1
as

begin

begin trans
    insert into dom(value)
if flag=0
    rollback trans
else
    commit

So what is flag? What is value? How are you passing in the value?

I don't think your code is useful for us to help you.

Take a look at Books Online for more information about ROLLBACK, or make it easier for us to help you.

0

精彩评论

暂无评论...
验证码 换一张
取 消