创建存储过程的问题

CREATE PROCEDURE A_Del
@table char(15),
@ID int
AS
DECLARE @Str nvarchar(1000)
set @Str='delete from '+ @table +' where ID='+@ID+'
exec(@Str)
GO
提示ID数据类型不符,那怎样办好吖?谢谢
ID是int型的.
[254 byte] By [minged] at [2008-1-8]
# 1
请问怎样做吖??
minged at 2007-10-19 > top of Msdn China Tech,其他数据库开发,SQL Anywhere Studio...
# 2
set @Str='delete from '+ @table +' where ID='+@ID+'

引号都不对称
搞不清楚你想得到什么结果
@ID如果是在数据库中创建的
就不需要放入引号当中
更不需要+