在sql中建立了这样一个存储过程
CREATE proc aaa @nums char(10)='cccc' as
select * from auname where name=@nums
GO
在delphi中用adostoredproc调用存储过程
adostoredproc1.Parameters.ParamValues['@nums']:='aaaa';
ADOStoredProc1.Open;错误信息里说:参数@nums不存在,这是为什么呀?
CREATE proc aaa @nums char(10)='cccc' as
select * from auname where name=@nums
GO
在delphi中用adostoredproc调用存储过程
adostoredproc1.Parameters.ParamValues['@nums']:='aaaa';
ADOStoredProc1.Open;错误信息里说:参数@nums不存在,这是为什么呀?
如果在程序运行中动态改变存储过程名
尝试用adostoredproc1.Parameters.CreateParameter()创建参数