高手请进

jialu_wang 2012-04-10 07:07:44
Alter procedure js_dtdy
(@ZZ varchar(50))
as
declare @xx int,@yy int,@fh varchar(2000)
select @xx=xx,@yy=yy from _us where usr=@zz

set @fh=''
select @fh=@fh +',' + cast(id as varchar(20)) from js_bt A join
(select distinct btid from js_bti) B on a.id=b.btid where id between @xx and @yy
if @xx=@yy

select right(@fh,len(@fh)-1)
这条语句是用来动态配置 我的打印标题的,
请教下 :我现在想调试下第127号单据,请问调试这个存储过程是 js_dtdy '99e','127'吗?其中99e是操作员。好无助啊 想拜师 谁愿意教我这个小菜鸟吗
...全文
55 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复

--你只定义了一个传入参数,只能传一个进去
exec js_dtdy '127'

34,594

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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