答案 0 :(得分:0)
如果我理解得很好,您希望使用长度超过30个字符的列别名构建查询;如果是这样,你只能在Oracle 12.2和之后。
使用以前的版本,这就是你得到的:
SQL> select 1 as "Alias with 30 characters -----"
2 from dual;
Alias with 30 characters -----
------------------------------
1
SQL> select 1 as "Alias with 31 characters -----X"
2 from dual;
select 1 as "Alias with 31 characters -----X"
*
ERROR at line 1:
ORA-00972: identifier is too long