本文介绍了在.net中附近的语法错误。在asp。#c的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友们,
我在s和Max附近有不正确的语法,在最后3行有10个..有什么问题请问我有什么问题..
选择 10prdp_totalcount 为 [10prdp],
Rate_totalamount as [Rate],
D-Clamp_totalcount as [D-Clamp],
Rate_totalamount as [Rate]
来自
(
选择 DPNo,
ItemName + ' _' + col,
MatQty
from
(
选择 DPNo,ItemName,
cast(Rate as 数字( 10 , 2 ))率
来自 Vw_DailyEntry
)src
unpivot
(
MatQty
col in (rate)
)unpiv
)s
pivot
(
Max(MatQty)
for ItemName in (10prdp_totalcount,Rate_totalamount,
Clamp_totalcount,Rate_totalamount)
)piv
order by ItemName
解决方案
Dear Frnds,
I have incorrect syntax near s and Max and 10 in last 3 lines.. what is the problem anyone tell me pls..
select 10prdp_totalcount as [10prdp], Rate_totalamount as [Rate], D-Clamp_totalcount as [D-Clamp], Rate_totalamount as [Rate] from ( select DPNo, ItemName +'_'+col, MatQty from ( select DPNo, ItemName, cast(Rate as numeric(10, 2)) rate from Vw_DailyEntry ) src unpivot ( MatQty for col in (rate) ) unpiv ) s pivot ( Max(MatQty) for ItemName in (10prdp_totalcount, Rate_totalamount, Clamp_totalcount, Rate_totalamount) ) piv order by ItemName
解决方案
这篇关于在.net中附近的语法错误。在asp。#c的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!