exec sp_executesql N'select * from l_goodsbom where goodsid=3935 and (charindex(@P1,rtrim(ltrim(memo)))<>0 or charindex(@P2,rtrim(ltrim(memo)))<>0)', N'@P1 varchar ...