标签:varchar turn 过程 cat return end var rom procedure
CREATE PROCEDURE userinfor2
@id int,
@UserID int output
AS
BEGIN
declare youbiao(游标名) cursor for select id from UserInfor where id=@id
declare @getid varchar(400)
open youbiao(游标名)
begin
fetch next from youbiao(游标名) into @getid (赋值)
update UserInfor set name=‘‘+@getid+‘‘+‘111‘ where id=@getid
end
close youbiao
deallocate youbiao
return @UserID
END
标签:varchar turn 过程 cat return end var rom procedure
原文地址:http://www.cnblogs.com/suppler/p/6994243.html