문서유형ㅣ기술정보
분야ㅣApp개발
문서번호ㅣTDETI003
개요
아래의 쿼리와 같이 like in에 다수의 인자 부여하고 싶은 경우, REGEXP_LIKE() 함수로 쿼리를 만들어 활용하는 방법을 설명합니다.
select distinct a.table_name from dba_tables a, dba_tab_columns b where a.table_name=b.table_name
and a.data_type like in ('%LONG%', '%LOB%')
and a.owner='TIBERO'
order by 1;
방법
REGEXP_LIKE() 함수로 쿼리를 구성하여 like in에 다수의 인자 부여하는 방법은 아래와 같습니다.
select distinct a.table_name from dba_tables a, dba_tab_columns b where a.table_name=b.table_name and REGEXP_LIKE(b.data_type, 'LOB|LONG') and a.owner='TIBERO' order by 1 ;