D
dbj
Unregistered / Unconfirmed
GUEST, unregistred user!
create procedure pro_1
@mc varchar(20)
as
begin
select * from a where mc=@mc
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
ADOStoredProc1.Close;
ADOStoredProc1.Parameters.parambyname('@mc').value := edit1.Text;
ADOStoredProc1.ProcedureName := 'rsgl.dbo.pro_1;1';
ADOStoredProc1.Prepared;
ADOStoredProc1.Open;
end;
出错信息:1. 过程'pro_1'需要参数'@mc',但未提供该参数
或 2. ADOStoredProc1arameter'@mc' not found
请各位高手帮忙解决,谢谢!!
@mc varchar(20)
as
begin
select * from a where mc=@mc
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
ADOStoredProc1.Close;
ADOStoredProc1.Parameters.parambyname('@mc').value := edit1.Text;
ADOStoredProc1.ProcedureName := 'rsgl.dbo.pro_1;1';
ADOStoredProc1.Prepared;
ADOStoredProc1.Open;
end;
出错信息:1. 过程'pro_1'需要参数'@mc',但未提供该参数
或 2. ADOStoredProc1arameter'@mc' not found
请各位高手帮忙解决,谢谢!!