SqlServer Storage Process(입력 및 출력 매개변수)

339 단어 SqlServer
학생name
use university_database
go

create procedure Get_instructor_name2
@Set_ID varchar(10),
@Get_Name varchar(20) output
as
begin 
select @Get_Name=name
from student
where ID=@Set_ID;
end

declare @Get_Name varchar(20)
exec Get_instructor_name2  '00128',@Get_Name output
select @Get_Name as out_name

좋은 웹페이지 즐겨찾기