[펌] 중간단어 검색 쿼리문

00341
00345
00201
00141
00343

위와 같은 데이터가 있을때.

1. select 원하는칼럼
    from 테이블
    where SUBSTRING(칼럼,3,1) = '원하는문자';

2. select * from 테이블이름 where 컬럼이름 like '__3__'

3. select * from 테이블이름 where substring(컬럼이름, 3, 1)='3'

Press ESC to close