CREATE TABLE OWLUpdates(
id INT AUTO_INCREMENT NOT NULL,
website INT, INDEX website__idx (website), FOREIGN KEY (website) REFERENCES OWLWebsite (id) ON DELETE CASCADE,
suburl VARCHAR(255),
sendtimes INT,
title VARCHAR(255) UNIQUE,
description LONGTEXT,
is_show CHAR(1),
reads INT,
degrees INT,
mtime DATETIME,
PRIMARY KEY(id)
) ENGINE=InnoDB CHARACTER SET utf8;
有什么错误??web2py 报告:
(1064, u"您的 SQL 语法有错误;请查看与您的 MySQL 服务器版本相对应的手册以获取正确的语法,以便在 'reads INT,\n degree INT,\n mtime DATETIME,\n PRIMARY KEY( id)\n) ENGINE=Inn' 在第 9 行")