为什么我不能取出密码呢?求大神解释
loginTest = SQLiteDatabase.openOrCreateDatabase("data/data/com.stephen.sqltest/databases/Login_test_db",null); String sql = "Select pass from user where name="+user; int tep=0; Cursor cursor = loginTest.rawQuery(sql,null); cursor.moveToFirst(); try { int tepm =cursor.getInt(cursor.getColumnIndex("pass")); Toast.makeText(SqlTest.this, tepm+" ", Toast.LENGTH_SHORT).show(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); Toast.makeText(SqlTest.this, tep+" "+"下方", Toast.LENGTH_SHORT).show(); }