Re: [問題] SQLite 防止重複插入數據
※ 引述《westcash (堯堯)》之銘言:
: 各位大大好
: 我想請問有沒有方法
: 能避免Table裡面已有的資料重複插入(insert)
: 一個Table的結構為
: COLUMN_ID integer primary key autoincrement
: COLUMN_PRODUCTS_CATEGORY text not null
: 另一個Table結構則有很多個COLUMN
設UNIQUE
https://www.sqlite.org/lang_createtable.html
A set of SQL constraints for each table. SQLite supports UNIQUE, NOT NULL, CHECK and FOREIGN KEY constraints.
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.163.235.118
※ 文章網址: https://www.ptt.cc/bbs/AndroidDev/M.1427253885.A.029.html
推
03/25 11:33, , 1F
03/25 11:33, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):