본문 바로가기

SQL20

java where like 검색 방법. MongoDB Java Like 자바에서 like 검색 할 때. BasicDBObject q = new BasicDBObject(); q.put("name", java.util.regex.Pattern.compile(m)); dbc.find(q); 이렇게 하면 된다. 2015. 11. 12.
MongoDB 설정. MongDB 설정.구글링해보면 크게 2.4 버젼과 3.0 버젼으로 나옵니다. 2.4 url (https://docs.mongodb.org/v2.4/reference/configuration-options/) 3.0 url (https://docs.mongodb.org/manual/reference/configuration-options/) 둘간의 차이점은 분명한데 2.4 방식은 key=value 방식이고 3.0 방식은 yaml 방식으로 json과 흡사하다. 2.4 3.0 option 설정 dbpath=/data/db logpath=/data/log setParameter=logLevel=1 storage: dbPath:/data/db systemLog: destination:file path:"/var/.. 2015. 11. 9.
오라클(Oracle) ORA-29275 : 부분 다중 바이트 문자(partial multibyte character tips) ORA-29275 : 부분 다중 바이트 문자 ORA-29275: partial multibyte character tips 캐릿터 셋이 안 맞아서 생기는 문제이다. DB에서 변경하는 것도 방법이겠지만 이거 변경했다간 무슨 문제가 생길지도 모른다. select to_single_byte(필드명) from TABLE 이게 가장 편한 방법 it coursed by wrong char set. you can change DB settings but It can make big problems. So I recommand. select to_single_byte(field name) from TABLE 2014. 9. 16.
MYSQL error code 1175 mysql 툴을 사용하다보면 아래와 같은 에러가 날 때가 있다. Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences 이렇게 써 주면 해결된다. SET SQL_SAFE_UPDATES=0; 나를 위한 저장~ 2014. 1. 26.