27,579
社区成员
发帖
与我相关
我的任务
分享
ALTER procedure [dbo].[pro_slt_TCCL011421]
@Pdno nvarchar(20),
@cjdate nvarchar(20),
@strSql nvarchar(100)
as
begin
if @strSql !=''
begin
select *
from tccl01142 with(nolock)
where cjmk='0'
and cjdate=@cjdate
and Pdno like @Pdno + @strSql --这里的参数有引号
end
else
begin
select * from tccl01142 with(nolock)
where cjmk='0'
and cjdate=@cjdate
and Pdno like @Pdno
end
end