|
居然忘记了最基本的写法,根据题意最多写20个substr
with t as (select rownum+64 n from dual connect by rownum<=3),
t2 as (select replace(sys_connect_by_path(chr(n),','),',') str from t where level>=2 start with n=65 connect by nocycle n!=prior n )
select substr(str,1,1)||substr(str,1,1)||
substr(str,2,1)||substr(str,2,1)||
substr(str,3,1)||substr(str,3,1)||
substr(str,4,1)||substr(str,4,1)s
from t2;
|
|