Let's say I have following string: a=A#abc=Y#sps=Y#
in some field of the table.
I want to query for the a
and get A
with this query:
select UPPER(REGEXP_SUBSTR(REGEXP_SUBSTR(
'a=Y#abc=Y#sps=Y#' ,
'a\=([^#]+)#?'), '[[:alpha:]]')) from dual;
I get :
a
---------------
N
1 row selected