摘要:
set ANSI_NULLS ONset QUOTED_IDENTIFIER ONGOcreate PROCEDURE [dbo].[GuestBook_DeleteGuestBookById]@Id intASBEGINbegin tran Del--开始事务DECLARE @DelError int--定义记录错误数的变量delete GuestBook where Id=@Id--执行SQL语句1set @DelError=@DelError+@@ERROR--设置错误数量Delete GuestBook where GBookId=@Id--执行SQL语句2set @DelError= 阅读全文