<pre style="color:rgb(0,0,0);font-family:'굴림체';font-size:9pt;background-color:rgb(255,255,255);"><span style="color:rgb(0,0,128);font-weight:bold;">public void </span>update(<span style="color:rgb(0,0,128);font-weight:bold;">int </span>position) { </pre><pre style="color:rgb(0,0,0);font-family:'굴림체';font-size:9pt;background-color:rgb(255,255,255);"><span style="color:rgb(128,128,128);font-style:italic;"> </span>SQLiteDatabase db = getWritableDatabase();<br><span style="color:rgb(128,128,128);font-style:italic;"> </span>db.rawQuery(<span style="color:rgb(0,128,0);font-weight:bold;">"UPDATE ITEM_LIST SET amount = 0 WHERE _id = " </span>+ position, <span style="color:rgb(0,0,128);font-weight:bold;">null</span>);<br> db.close();<br>}</pre><pre style="color:rgb(0,0,0);font-family:'굴림체';font-size:9pt;background-color:rgb(255,255,255);"> </pre><pre style="color:rgb(0,0,0);font-family:'굴림체';font-size:9pt;background-color:rgb(255,255,255);">이런식으로 사용이 불가한가요..?</pre><pre style="color:rgb(0,0,0);font-family:'굴림체';font-size:9pt;background-color:rgb(255,255,255);">SQLiteSpy 에서는 amount 의 값이 잘 변경되는데 비해</pre><pre style="color:rgb(0,0,0);font-family:'굴림체';font-size:9pt;background-color:rgb(255,255,255);">db.update(position);</pre><pre style="color:rgb(0,0,0);font-family:'굴림체';font-size:9pt;background-color:rgb(255,255,255);">을 부르면 Log 를 찍어봐도 값이 그대로 변경이 안되네요..?</pre>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.