history라는 테이블에 docno, year, agename, docname, origin, doctitle 이라는 컬럼이 있습니다.


 openOrCreateDatabase("database.db", Context.MODE_PRIVATE, null);


를 통하여 db를 열고 

cursor = mdb.rawQuery("select * from history where ageName =  '" + age + "';", null);


쿼리를 실행하고

 Toast.makeText(this, String.valueOf(cursor.getCount()), Toast.LENGTH_SHORT).show();


count를 확인해보면 0이 뜹니다.


cursor = mdb.rawQuery("select * from history where docno = 13", null);


이렇게 쿼리를 날리고 count를 확인하면 1이 뜨고 60 번대 번호 이상의 경우에는 또 count가 0 이 뜹니다.


adb shell을 통하여 접근해보면 db는 모두 이상이 없습니다.


db파일은 파이어폭스에 sqlite manager를 통하여 utf로 생성하였습니다.


비슷한 경험이 있으시거나 아시는분들의 조언 부탁드립니다.

<link rel="stylesheet" type="text/css" media="screen" href="chrome-extension://fcdjadjbdihbaodagojiomdljhjhjfho/css/atd.css">