| sql如下:现在@Outremake、@OutconstsId都可以取到,但是当@Outremake 作为字段进行查询时就会变成字符串,查询的结果@OutOriginalamount 就会变成@Outremake字段名,而不是字段值,应该怎么写。 SELECT @OutcostCenter= left(OutcostCenter,3) FROM [TEST] WHERE id=@id; 
 SELECT @OutconstsId = constsId from MConsts where constsType = '236' and constsName = @OutCostcategory ; SELECT @Outremake = remark FROM DBudgetmanager where code = @OutcostCenter ; SELECT @OutOriginalamount = @Outremake from MBudgetCostcenter where feeType = @OutconstsId | 
 立即参与
              立即参与
          