Sunday, February 7, 2021

How to multiple value search in Oracle Database field

create table t1 
(
data varchar2(20)
)
/


insert into t1 values('GTY')
/
insert into t1 values('GAT')
/
insert into t1 values('GRP')
/

select *

from t1

where data in

(

select

regexp_substr('&p_company','[^;]+', 1, level)

from dual

connect by regexp_substr('&p_company', '[^;]+', 1, level)

is not null)

No comments:

Post a Comment

How to install and configure Oracle Apex 24.1 with ORDS 22, Tomcat 9 and Jasper Report 7 on Oracle Linux 8.10

#########################Install Oracle  APEX 24.1################################ ----------------------------------------------------...