Home  >  Article  >  Database  >  简单的插入数据 存储过程 SCOPE

简单的插入数据 存储过程 SCOPE

WBOY
WBOYOriginal
2016-06-07 17:44:521213browse

简单的插入数据 存储过程 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

,虚拟主机
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn