SSRS 为什么传进去的参数会出错,好烦躁啊..........
ALTER proc [dbo].[usp_rpt_calllist_department] @mth varchar(100),@dep varchar(100)asdeclare @SQL varchar(8000)create table #1(mth varchar(20) not null,compid varchar(10) null ,depname varchar(20) not null,zhf numeric(18,2) null)insert #1select mth,compid,depname,sum(mtotal) as total from call_listgroup by mth,compid,depnameset @sql='select * from #1 where mth in (' + @mth + ') and depname in ('+@dep+')'print @sqlexec (@sql)drop table #1