很简单的有关问题,此存储过程错在哪里

很简单的问题,此存储过程错在哪里@aavarchar(10)selectIDfromtable1whereidim@aa这样写行不行呀[解决办法]

很简单的问题,此存储过程错在哪里
@aa   varchar(10)

select   ID   from   table1   where   id   im   @aa

这样写行不行呀

[解决办法]
select ID from table1 where id in @aa
[解决办法]
select ID from table1 where id = @aa