当前位置: 代码迷 >> Sql Server >> 这句话哪儿不对呢
  详细解决方案

这句话哪儿不对呢

热度:28   发布时间:2016-04-27 11:31:10.0
这句话哪里不对呢?
select ContractNm,RepayType,receivableAmount
 from InterestReceive pivot 
 (sum(receivableAmount)
  for RepayType in(OnceCharge,OtherCharge))

请大家帮忙看看

------解决方案--------------------
SQL code
select ContractNm,OnceCharge,OtherCharge from InterestReceive pivot   (sum(receivableAmount)  for RepayType in(OnceCharge,OtherCharge)) pvt
  相关解决方案