-4
Create Proc getinfo
(
@Studentid int,
@karan varchar(200) out
)
As
Begin
select @karan= Firstname+' '+Lastname from tbl_students where [email protected]
End
enter image description here答え
Create Proc getinfo
(
@Studentid int,
@karan varchar(200) out
)
As
Begin
select @karan= Firstname+' '+Lastname from tbl_students where [email protected]
End
enter image description here答え
GETINFO procをは何も問題はありません。あなたのexec文はかなり右ではなく、戻り値を受け入れるように変数を宣言して割り当てる必要があり、あなたはそれを見るために選択する必要がある
declare @name varchar(100)
set @name = ' '
execute getinfo @studentid = 11000,@karan = @name output
select @name name
ノートそれは何のように見えるので、これは、SQLサーバーの答えです使っている。
私の質問 – karan
ご質問にお答えくださいか? –
私は上記の – karan