执行后会报错ORA-00923
请问要如何使oracle允许使用‘/’在别名中呢?
4 个解决方案
#1
select rownum "S/N",t1.* from tab_test t1
#2
别名两边加单引号试试
#3
SQL> select rownum "S/N" from eric_tmp
2 /
S/N
---------
1
2
3
4
5
6
7
7 rows selected.
SQL>
2 /
S/N
---------
1
2
3
4
5
6
7
7 rows selected.
SQL>
#4
多谢指教~!
#1
select rownum "S/N",t1.* from tab_test t1
#2
别名两边加单引号试试
#3
SQL> select rownum "S/N" from eric_tmp
2 /
S/N
---------
1
2
3
4
5
6
7
7 rows selected.
SQL>
2 /
S/N
---------
1
2
3
4
5
6
7
7 rows selected.
SQL>
#4
多谢指教~!