5,392
社区成员
发帖
与我相关
我的任务
分享
create procedure getCnt
@bad_count int output
@all_count int output
@percent float output
as
begin
declare @cnt1 int, @cnt2 int
select @cnt1=count (*) from ...
select @cnt2=count (*) from ...
set @bad_count=@cnt1
set @all_count=@cnt2
set @percent=@cnt1/@cnt2
end
至于用Delphi怎么调用,LZ自己研究一下吧