Ver originalDECLARE @nivel VARCHAR(200)SET @nivel = '1,2,3' SELECT * FROM tabla WHERE cod_id IN (@nivel)