日期:2014-05-18 浏览次数:20458 次
create procedure test @fld varchar(100) as declare @sql nvarchar(500) set @sql='declare xyz cursor fast_forward for select ' + @fld + ' from abc' exec sp_executesql @sql open xyz fetch next from xyz into ....(@fld是所要查询的列的字符串,是未知个数的,这里应该怎么写呢?)... ............ ......