CREATE PROCEDURE userinfor2
@id int,
@UserID int output
AS
BEGIN
declare youbiao(游标名) cursor for select id from UserInfor where [email protected]
declare @getid varchar(400)
open youbiao(游标名)
begin
fetch next from youbiao(游标名) into @getid (赋值)
update UserInfor set name=‘‘[email protected]+‘‘+‘111‘ where [email protected]
end
close youbiao
deallocate youbiao
return @UserID
END
时间: 2024-10-12 04:26:07