create procedure [spname]([spvariable])asbegin begin transaction begin try --具体sql过程 commit; end try begin catch rollback; end catchend