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
难道存储过程的参数不能为表达式吗
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货