Sorry for not supplying you the useful infomation. I executed these statements in the Command Editor, and the result only includes the infomation of the sqlstate. So I cannot reply you with the sqlcode.
If I remove the commit statements, there is more infomation returned, including the sql code( sqlcode : -964). But I think that is another situation.
I have used the update commands, but delete still got wrong.