SELECT COUNT(*)
FROM user
WHERE userId=BINARY(#userId:VARCHAR#) and password=BINARY(#password:VARCHAR#)
아 물론 이건 ibatis xml 파일에 넣는 것이고...
요지는 binary 로 감싸준다는 것이다.
'DB' 카테고리의 다른 글
Mysql에서 한글이 깨질 때 (0) | 2012.03.17 |
---|---|
Mysql MYSQLNonTransientConnectionException (0) | 2012.03.17 |
Mysql 한글검색 (0) | 2012.03.17 |
Mysql 에서 foreign key 설정 (0) | 2012.03.17 |