简单的插入数据 存储过程 SCOPE_IDENTITY() asp:Button ID=(temp == 0){myShare.WebMessageBox( this .Page, "留言发送失败,请重试!" );} else {Page p = (Page)System.Web.HttpContext.Current.Handler;p.ClientScript.RegisterStartupScript(p.GetType()
简单的插入数据 存储过程 SCOPE_IDENTITY()
Create proc AddGuestBooks BEGIN insert into GuestBooks(Creater,CompanyName,Contact,Email,Tel,Content) values(@Creater,@CompanyName,@Contact,@Email,@Tel,@Content) SELECT @EC_TempID=SCOPE_IDENTITY() IF @EC_TempID=0 BEGIN SET @ReturnValue=-1 END else begin set @ReturnValue=@EC_TempID end END end go
posted on
,虚拟主机