阅读一些文档,但似乎我无法得到它。
我有这样的交易:
begin transaction
statement 1
statement 2
statement 3
commit
我想要做的是这样的事情:
begin transaction
if statement 1 fails then rollback from beginning else create savepoint1
if statement 2 fails then rollback from beginning else create savepoint2
if statement 3 fails then rollback from beginning else create savepoint3
if everything is successfully executed then commit
语法的任何提示?这些语句只是同一个表的一些插入和更新,当前的设置给了我一个死锁。
此致