错误 ORA-00904:在简单的 UNPIVOT 查询中。我究竟做错了什么?

ERROR ORA-00904: in simple UNPIVOT query. What am I doing wrong?

运行 对 UNPIVOT 列到行的基本查询并出现 "invalid identifier" 错误。我的代码有错字吗?

甲骨文 11G

select
   1 c1, 2 c2, 3 c3
FROM
   dual t
UNPIVOT
INCLUDE NULLS (
VALUE
   FOR
      COL
   IN
   (
      c1,c2,c3
   ));

错误:

ORA-00904: "C3": invalid identifier
00904. 00000 -  "%s: invalid identifier"
*Cause:   
*Action:
Error at Line: 533 Column: 13

请像这样重组您的查询...

with t as (select
   1 c1, 2 c2, 3 c3
FROM
   dual) 
select * from t 
UNPIVOT
INCLUDE NULLS (
VALUE
   FOR
      COL
   IN
   (
      c1,c2,c3
   ));