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条件を指定する方法は?androidのsqliteにクエリを挿入する
どのように挿入の代わりに更新を使用しますか?いくつかの例を挙げてください.. androidの初心者です – Suji
@Suji Androidのアップデート句の例を挙げて私の答えを修正しました –