我是安卓新手。我正在尝试从数据库(SQLite)中获取特定的单词。但是我无法使 where 子句起作用。我在哪里犯错?我的代码是:
private String[] sutunlar = {"ingilizce","turkce"};
public void kelimeUret() {
SQLiteDatabase db = kelimeler.getReadableDatabase();
Cursor kayit = db.query("kelimeler", sutunlar, "ingilizce='hello'", null, null, null, null);
String sonuc = kayit.getString(0);
Toast.makeText(getApplicationContext(), sonuc, Toast.LENGTH_SHORT).show();
}
我无法得到结果...