新手求救!!!!一定要救
在SQLserver中的一个存储过程
create proc pr_order
@tim char(14)output
as
begin
declare @d char(10),@int int
set @d=convert(char(10),getdate(),105)
select @int=count(*) from company where order_time=@d
select @tim=
case
when @int>=0 and @int<9 then
@d+'-00'+convert(char,@int+1)
when @int>=9 and @int<99 then
@d+'-0'+convert(char,@int+1)
when @int>=99 and @int<999 then
@d+convert(char,@int+1)
end
end
问:如何在ASP中调用pr_order并得到@tim的值
谢谢了
我以前没有用过存储过程的