SQLite 查询有问题吗?

Issue with SQLite query?

首先。很抱歉我的英语。如果你不明白我的意思请注意我。 我对这段代码有疑问,但我不知道为什么

public Cursor fetchReminderByMaterial(String table_name, String label, String key_material_name) throws SQLException {
    Cursor mCursor = mDb.query(true, table_name, null, key_material_name + "=" + label, null, null, null, null, null);
    if (mCursor != null) {
        mCursor.moveToFirst();
    }
    return mCursor;
}

我有类似 no such column label 的错误。
我该如何解决?

更新 这是我创建 table

的功能
String conectionSql = "CREATE TABLE IF NOT EXISTS "+ DATABASE_CONNECTION_TABLE +"(";
                            conectionSql += ""+ KEY_ROWID +" INTEGER PRIMARY KEY AUTOINCREMENT,";
                            conectionSql += ""+ KEY_FOOD_NAME +",";
                            conectionSql += ""+ KEY_MATERIAL_NAME +")";

    mDbConection.createTable(conectionSql); // Tao bang

这就是我使用它的方式

Cursor c = mDbConnection.fetchReminderByMaterial(
            DATABASE_CONNECTION_TABLE, "material", KEY_MATERIAL_NAME);

谢谢收听

问题写的很清楚-你的数据库没有列"label"。检查您的 SQLiteOpenHelper onCreate(SQLiteDatabase db) 您正在使用正确的方案创建数据库。并检查方法

中的参数
public Cursor fetchReminderByLabel(String table_name, String label,
        String key_column_two) 

key_column_two 您传递了正确的列名称