set @strSQL='select * from testtable AS P WHERE P.Type='+@PType+' and P.PName ='''+@PName+''' and P.PCode='+@PCode+' '; -- like ''%'+@PName+'%'' ' ;
set @strSQL='select * from testtable AS P WHERE P.Type='+@PType+' and P.PName ='''+@PName+''' and P.PCode='+@PCode+' '; -- like ''%'+@PName+'%'' ' ;
转载于:https://www.cnblogs.com/Warmsunshine/p/7729423.html