22,298
社区成员
发帖
与我相关
我的任务
分享select * from ListGoods
where ([size] like '%'+@size+'%' or @size is null)
or ([type] like '%'+@type+'%' or @type is null)
or ([load] like '%'+@load+'%' or @load is null)
ALTER proc [dbo].[GetListGoodBySelect]
@size varchar(50),
@type varchar(50),
@load varchar(50)
as
select * from ListGoods where [size] like '%'+isnull(@size,'')+'%' or [type]like '%'+isnull(@type,'')+'%' or [load]like '%'+isnull(@load,'')+'%'