안드로이드 개발 질문/답변
(글 수 45,052)
delete from testA where title not in(select title from testB);
위의 쿼리를 적용할려구하는데요...
아래처럼 짜다보가 포기했습니다.
sqlite로 적용해보려고하니깐 힘드네요 ㅠ
--------------------------------------------------------------------------------------------
Uri uriA = Ex.testA.CONTENT_URI;
Uri uriB = Ex.testB.CONTENT_URI;
selection = Ex.testA.TITLE + " not in (" + Ex.testB.TITLE + ")";
selectionArgs = null;
getContentResolver().delete(uriA, selection, selectionArgs);
위의 쿼리를 적용할려구하는데요...
아래처럼 짜다보가 포기했습니다.
sqlite로 적용해보려고하니깐 힘드네요 ㅠ
--------------------------------------------------------------------------------------------
Uri uriA = Ex.testA.CONTENT_URI;
Uri uriB = Ex.testB.CONTENT_URI;
selection = Ex.testA.TITLE + " not in (" + Ex.testB.TITLE + ")";
selectionArgs = null;
getContentResolver().delete(uriA, selection, selectionArgs);