新手求救!!!!一定要救

A41854776 2006-06-08 02:54:54
在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的值
谢谢了
我以前没有用过存储过程的
...全文
39 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧