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=@zzset @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=@yyselect right(@fh,len(@fh)-1)
这条语句是用来动态配置 我的打印标题的,
请教下 :我现在想调试下第127号单据,请问调试这个存储过程是 js_dtdy '99e','127'吗?其中99e是操作员。好无助啊 想拜师 谁愿意教我这个小菜鸟吗