Chanho_Park

sql 문 본문

Spring/Oracle

sql 문

Chanho_Park 2023. 2. 6. 16:20
728x90

컬럼 lotattribute04 의 3번째부터 1개만 출력

select  substr(lotattribute04,3,1)  table명


lot1 컬럼에 0-9가 포함되지 않는 것 조회

select * from table명 where NOT REGEXP_LIKE(lot1,'[0-9]')

lota 에 영문(대소문자) 포함되지 않는 것 조회

select * from table명 where NOT REGEXP_LIKE(lota,'[a-zA-Z]')

 

 

728x90

'Spring > Oracle' 카테고리의 다른 글

[ORACLE] DECODE, ROLLUP,GROUPING 함수  (0) 2023.05.16
Oracle Cloud 가입(오라클 클라우드)  (0) 2022.10.28