日期:2014-05-18 浏览次数:20680 次
declare @id int,@ch varchar(7),@yu1 numeric(3, 0),@TableName varchar(30) set @id=1 set @ch='G0A-116' set @yu1=66 set @TableName='F2201252' exec mod_sjsr1 @TableName,@id,@ch,@yu1
------解决方案--------------------
exec('update ['+ @TableName + '] set ch='''+@ch+''',yu1='''+@yu1+''' where Id='+Convert(varchar(32),@id)+'')
------解决方案--------------------
sql='exec @TableName='"+trim(edit1.text)+"',@id="+trim(edit2.text)+",@ch='"+ytim(edit3.text)+"',@yu1="+trim(edit4.text)+"'