SQL> select * from id_proof(source_table);
PANNO ADHARNO COLLEGEID
-------------------- -------------------- --------------------
BMBDD7715A 80DJ21761128 09751A123
PJ3AB1234B 567817231111 09751217
QDXAZ1723B 1127525423 111777A123
ZPBJT15623 27524397111 234725484
上面是我的源表,我想低于输出。
Target
------
80DJ21761128
567817231111
1127525423
27524397111
09751217
234725484
注意 - :前四行值来自adharno列,后两行值来自collegeid(仅限数字)。
答案 0 :(得分:3)
您可以执行类似
的操作select adharno as target
from id_proof(source_table)
union all
select collegeid
from id_proof(source_table)
where regexp_like( collegeid, '^[[:digit:]]*$' )