db2.execSQL("Create Table StudentElective1(studentid text UNIQUE,
elective1 text ,elective2 text ,year text)");
if ((db2.insert("StudentElective1", null, values))!=-1) {
Toast.makeText(eigth.this, "Elective Successfully Selected", 2000).show();
} else {
Toast.makeText(eigth.this,
"Insert Error,Elective already selected", 2000).show();
}
삽입 쿼리에서 where 조건을 지정하는 방법 ??안드로이드의 sqlite에 쿼리 삽입
방법 insert 대신 update를 사용 하시겠습니까? 제발 좀 .. 안드로이드에 대한 새로운 오전 – Suji
@Suji 안드로이드에서 업데이 트 조항에 예제를주는 내 대답을 수정했습니다 –