mysql out param no Value
Posted: Thu 09 May 2013 12:58
HI
I found sp out param has no value .
Mysql stored proc is
delimiter //
DROP PROCEDURE if exists SP_ECP_TestOutParam;
//
create procedure SP_ECP_TestOutParam(
out RecordCount int
)
begin
select 1 as Id;
set RecordCount=10;
END
//
delphi Code :
var
I:Integer;
ParamName,ParamValue:string;
begin
uniStoredProc1.StoredProcName:='SP_ECP_TestOutParam';
uniStoredProc1.PrepareSQL();
uniStoredProc1.ExecProc;
for I := 0 to UniStoredProc1.ParamCount-1 do
begin
ParamName:=uniStoredProc1.Params.Items.Name;
ParamValue:=uniStoredProc1.ParamByName(ParamName).AsString;
end;
end;
but Paramvalue No Value ! Why ? can you tell me ,how to Setting?
I found sp out param has no value .
Mysql stored proc is
delimiter //
DROP PROCEDURE if exists SP_ECP_TestOutParam;
//
create procedure SP_ECP_TestOutParam(
out RecordCount int
)
begin
select 1 as Id;
set RecordCount=10;
END
//
delphi Code :
var
I:Integer;
ParamName,ParamValue:string;
begin
uniStoredProc1.StoredProcName:='SP_ECP_TestOutParam';
uniStoredProc1.PrepareSQL();
uniStoredProc1.ExecProc;
for I := 0 to UniStoredProc1.ParamCount-1 do
begin
ParamName:=uniStoredProc1.Params.Items.Name;
ParamValue:=uniStoredProc1.ParamByName(ParamName).AsString;
end;
end;
but Paramvalue No Value ! Why ? can you tell me ,how to Setting?