한글에 upper함수 적용하면 검색이 안되는 이유?

by 장비맨 posted May 11, 2009
mysql 프로그램을 cubrid로 포팅 중인데요.
cubrid가 대소문자를 구분해서 upper()함수를 이용하려고 합니다.

그런데 필드에 한글이 있는 경우 검색결과가 이상하게 나오네요.
product 테이블에 필드명 item_name이 이 있고
item_name이 '키보드'인 상품이 등록되어 있다고 했을때. 

select * from product where upper(item_name) like '키보%';
이렇게 하면 검색이 되는데.
select * from product where upper(item_name) like '키%';
이렇게 하면 검색이 안되네요.

'마우스'의 경우에는

select * from product where upper(item_name) like '마%';
이렇게 하면 검색이 되는데.
select * from product where upper(item_name) like '마우%';
이렇게 하면 검색이 안되네요.

어떻게 된 걸까요?

Articles

7 8 9 10 11 12 13 14 15 16