Android SQLite SELECT Query
我从a中获取值并将其设置在内部条件String
EditText
SELECT QUERY after WHERE
如
TextView tv = (TextView) findViewById(R.id.textView3);
EditTextet2 et = (EditText) findViewById(R.id.editText1);
String name = et.getText().toString();
Cursor c = db.rawQuery("SELECT * FROM tbl1 WHERE name = '"+name+"'", null);
c.moveToNext();
tv.setText(c.getString(c.getColumnIndex("email")));
但它不起作用。有什么建议吗?