Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-07 17:44:52
Original
1211 people have browsed it

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

,虚拟主机
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!