自动提交事务
隐式事务
打开sql Server Managerment Studio,登陆到实例当中。
Tools -> Options
Query Execution -> sql Server -> ANSI
将SET IMPLICIT_TRANSACTIONS前打上勾
显式事务
begin transaction
delete from erpdb.dbo.mtl_categories_b
rollback transaction
--commit transaction