select * from abc;
COL
----------------
-xxx 999 yyyy123
03112X
123:1
34455
3456xyc
xxx234
xxxxxx
7 rows selected.
select
REGEXP_SUBSTR ( col
, '[0-9]+'
)
from abc;
REGEXP_SUBSTR(CO
----------------
999
03112
123
34455
3456
234
select * from abc where col =
REGEXP_SUBSTR ( col
, '[0-9]+'
);
COL
----------------
34455
why output of both above sql is not similar?
How it works?
Thanks In advance.