Hi i'm new to DB2...
i'm writing two 'insert' statements, this should work as a single transaction...
is there any command in DB2 to start the transaction (like Begin Tran)...
Ex.
will it work (even if AutoCommit is ON)?? or any change needs to be done?
thanks in Adv.
i'm writing two 'insert' statements, this should work as a single transaction...
is there any command in DB2 to start the transaction (like Begin Tran)...
Ex.
Code:
Insert into SchemaName.Table1 (field1, field2)
Values ('test1', 'test12')
Insert into SchemaName.Table2 (field1, field2)
Values ('test22', 'test222')
Commit;
thanks in Adv.
Comment