2,
declare @hhh varchar(8000)
select @hhh=@hhh +'sum('+t2.name+'),' from sysobjects t1,syscolumns t2 where t1.xtype='U' and t1.id=t2.id
set @hhh =left(@hhh ,len(@hhh)-1)
exec('select fid,'+@hhh+'
form t_temp
group by fid')
declare @hhh varchar(8000)
select @hhh=@hhh +'sum('+t2.name+'),' from sysobjects t1,syscolumns t2 where t1.xtype='U' and t1.id=t2.id
set @hhh =left(@hhh ,len(@hhh)-1)
exec('select fid,'+@hhh+'
form t_temp
group by fid')
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货