將唯一值插入到虛擬表中我創建了一個虛擬table.i問題是我無法使用fts3將唯一值插入到我的虛擬表數據庫中。 這裏是我創建表的代碼如何使用(fts3)
public static final String DATABASE_CREATE =
"CREATE VIRTUAL TABLE " + FTS_VIRTUAL_TABLE + " USING fts3(" +
KEY_CUSTOMER + " text UNIQUE," +
KEY_NAME + " NOT NULL," +
KEY_ADDRESS1 + " NOT NULL," +
KEY_ADDRESS2 + " NOT NULL," +
KEY_CITY + " NOT NULL," +
KEY_STATE + " NOT NULL," +
KEY_ZIP + " NOT NULL," +
KEY_SEARCH + "," +
KEY_AMOUNT + " NOT NULL," +
" UNIQUE (" + KEY_CUSTOMER + "));";
在這裏,我想KEY_CUSTOMER
獨特,它不工作我可以存儲相同的名字多次......其無視我UNIQUE
聲明
您可以使用我的代碼顯示嗎? – Jawa