2013-03-20 50 views
7

這是我的數據庫:的Android SQLite的刪除行從表2個在哪裏參數

// the names for database columns 
    public final static String TABLE_NAME = "vremena"; 
    public final static String TABLE_COLUMN_ID = "_id"; 
    public final static String TABLE_COLUMN_ONE = "dan"; 
    public final static String TABLE_COLUMN_TWO = "vrijeme"; 

我試圖創造出需要兩個參數,並刪除所選行從數據庫的方法:

public void delete(String dan, int vrijeme){ 
    db.delete(TABLE_NAME, TABLE_COLUMN_ONE+"="+dan, TABLE_COLUMN_TWO+"="+vrijeme); 
    } 

正在此錯誤:

The method delete(String, String, String[]) in the type SQLiteDatabase is not applicable for the arguments (String, String, String) 

我知道我在做什麼刪除方法中的錯誤。

回答