📜  如何避免 sqlite 中的重复记录 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:36.187000             🧑  作者: Mango

代码示例1
CREATE TABLE MAIN
   (
   NAME           TEXT    NOT NULL,
   Error_List          CHAR(50),
   Warning_List        CHAR(50),
   Advice_List         CHAR(50),
   Total          CHAR(50),
   Note           CHAR(50),
UNIQUE (NAME, Error_List, Warning_List, Advice_List, Total, Note) ON CONFLICT IGNORE
);