create table test(name nvarchar(20))
go---为什么这个不可以
declare @old nvarchar(20)
declare @new nvarchar(30)
select @old='name',@new='xxxx' 
exec sp_rename 'test.'+@old,@new,'column'---这个可以
declare @old nvarchar(20)
declare @new nvarchar(30)
select @old='name',@new='xxxx' 
select @old='test.'+@old
exec sp_rename @old,@new,'column'drop table test
难道存储过程的参数不能为表达式吗