这是我的字符串'ORACLE'列:
COL
---
ORACLE
我想要以下输出:
O
R
A
C
L
E
答案 0 :(得分:1)
这将起作用
SELECT SUBSTR ('ORACLE', LEVEL, 1) FROM dual
Connect by level <= length ('ORACLE');
答案 1 :(得分:0)
尝试以下
SELECT SUBSTR(COL, LEVEL, 1) x from tablename
CONNECT BY LEVEL <= LENGTH(COL)