Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在查询中使用数据透视,但出现错误:
ORA-00936 :缺少表达式
以下是我的查询:
select * from t_product PIVOT( sum(jira_value) FOR jira in (['C_MIN'],['C_MAX']) )
去掉方括号并使用 as :
select * from t_product PIVOT( sum(jira_value) as sum_jira FOR (jira) in ('C_MIN' as c_min ,'C_MAX' as c_max ) );