Ver originalDECLARE @VALOR VARCHAR(100)SET @VALOR = '-113-112-114-' SELECT * FROM TABLAWHERE charindex('-'+CAST(cod_id AS VARCHAR(3))+'-',@VALOR) > 0