Create Procedure abc (@autoIdStr varchar(100)) AS
exec('Select * from table1 where autoID in ('+@AutoIDStr+')')
GO
execute abc '1,2,3'