過濾條件我想有字符/字符串數組省略如下的條件,在存儲過程SQL Server 2008中的存儲過程腳本
if(charindex(@strfileName, ' ')) <=0 and if(charindex(@strfileName, '-') <= 0) and
if(charindex(@strfileName, '-') <= 0) and if(substring(@strfileName, 'report ') <= 0)
什麼是做到這一點的最好辦法,通過陣列/過濾條件列表?
感謝,
CHARINDEX將不會返回一個負數。你到底想做什麼? –