sbSql.Append(@"EXEC('select ID,PumpingName,(select Max(cnt) from ( select count(PumpModel) as cnt from FMDS_Water_IrrigaDrainageStat union all select count(PumpManu) as cnt from FMDS_Water_IrrigaDrainageStat union all select count(PumpUnits) as cnt from FMDS_Water_IrrigaDrainageStat union all select count(PumpTime) as cnt from FMDS_Water_IrrigaDrainageStat union all select count(PumpPower) as cnt from FMDS_Water_IrrigaDrainageStat ) t from [FMDS_Water_IrrigaDrainageStat] '+ @Condition +' '+@SortBy)");
如上,每个count语句需要加上@Condition ,的怎么写
原样输出