摘要:
参考地址:http://www.cnblogs.com/xbf321/archive/2008/11/02/1325067.htmlexec('select * from TableName')declare @slideAvg realdeclare @sql1 nvarchar(1000)set @sql1='select @slideAvg=avg(val) from S'+@StationID+'HN where channel_num='''+@channel_num+''' and date_t 阅读全文