0
我正在Android中使用Sqlite實現更改密碼。Android更新查詢錯誤
我的查詢是:
try
{
String update_query = "UPDATE " + TABLE_NAME + " SET " + PWD + "='" + temp_new_pwd + "' WHERE " + EMAIL + " = " + email;
db.execSQL(update_query);
Toast.makeText(getApplicationContext(), "Password Changed Successfully", Toast.LENGTH_SHORT).show();
}
catch(Exception e)
{
Toast.makeText(getApplicationContext(), "Database Error", Toast.LENGTH_SHORT).show();
}
它顯示以下錯誤:
E/SQLiteLog: (1) near "@abc": syntax error
E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa29113f0
不工作表演: 'W/OpenGLRenderer:無法設置EGL_SWAP_BEHAVIOR上表面0xaa410c60,誤差= EGL_SUCCESS E /表面:getSlotFromBufferLocked:未知緩衝液:0xaa005100' – Sagar