CREATE TABLE HANGULQUERY (
hangul text
)
insert HANGULQUERY VALUES('가갸가각');
insert HANGULQUERY VALUES('나냐나낳');
select * from HANGULQUERY WHERE PATINDEX('[가-깋]%', hangul) > 0; <-- 초성 ㄱ
select * from HANGULQUERY WHERE PATINDEX('[나-닣]%', hangul) > 0; <-- 초성 ㄴ
//
select * from HANGULQUERY where hangul >= '가 and hangul < '나'
아래는 해봤고.. 위에도 해봐야지..
No comments:
Post a Comment