CREATE PROCEDURE aaa
@abc char(10),
@mycount int output
AS
select @mycount=count( *) from employees where pusercode=@abc
return
GO
如何提取参数
procedure TFrm_worker_info.Button1Click(Sender: TObject);
var outcount:integer;
begin
本文介绍了一个SQL存储过程,该过程通过输入用户代码来计算员工记录的数量,并返回计数结果。示例展示了如何使用ADOStoredProc组件设置输入参数并获取输出参数。
628

被折叠的 条评论
为什么被折叠?



