11智能在线
新记
oracle中pivot子查询如何用
在oracle中使用pivot函数,看介绍说在in()中可以使用子查询,但是使用子查询执行时报错缺少表达式,请问子查询应该如何使用,是不是pivot不支持子查询,谢谢
举报该文章
相关建议 2015-05-22
xml 类型的时候可以使用any 关键字和子查询,返回的结果是xml结构的;
select * from (
select times_purchased as "Puchase Frequency", state_code
from customers t
)
pivot xml
(
count(state_code)
for state_code in (select state_code from preferred_states)
)
order by 1
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/ppq822v847m7sf28pv7.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
Oracle中使用pivot的问题
oracle 用pivot怎么将这组数据通过key做为列 把...
oracle pivot 转换后的列 可以进行加减函数运算么
高分求教,Oracle 解析Pivot 生成的XML转为ta...
powerpivot 2013怎么连接oracle数据库
oracle 10G 没有 PIVOT 函数怎么办,自己写一...
oracle 新函数PIVOT参照文档无法运行
oracle这种数据 pivot或者其他怎么将key做字段 ...