Parcourir la source

去除主键;

Jeff il y a 5 ans
Parent
commit
60f3eb5ebd
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      TCL Copy Tool/TCL Copy Tool/db.cpp

+ 1 - 2
TCL Copy Tool/TCL Copy Tool/db.cpp

@@ -9,8 +9,7 @@
 (url  TEXT NOT NULL,\
 content  TEXT NOT NULL, \
 gener_date  DATETIME NOT NULL DEFAULT current_timestamp,\
-report_date  DATETIME NOT NULL DEFAULT '',\
-PRIMARY KEY (url, content));"
+report_date  DATETIME NOT NULL DEFAULT '');"
 #define _SELECT_REPORT_TABLE_ "SELECT url, content, report_status FROM report"
 #define _INSERT_REPORT_TABLE_ "INSERT INTO report(url, content, report_status) VALUES (%s, %s, %s);"