String query = "CREATE TABLE IF NOT EXISTS platforms ( " +
"id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, " +
"sites_id INTEGER UNSIGNED NOT NULL, " +
"baseline BLOB NULL, " +
"platform BLOB NULL, " +
"siteinfo BLOB NULL, " +
"databases BLOB NULL, " +
"PRIMARY KEY(id), " +
"INDEX (sites_id), " +
"FOREIGN KEY (sites_id) " +
"REFERENCES sites (id) " +
"ON DELETE NO ACTION " +
"ON UPDATE NO ACTION " +
")ENGINE=InnoDB;";
这是我正在尝试创建的 MySQL 数据库的 SQL 查询。但是,我不知道为什么,我收到以下错误:
“您的 SQL 语法有错误;请查看与您的 MySQL 服务器版本相对应的手册,了解在 'databases BLOB NULL, PRIMARY KEY(id), INDEX (sites_id), FOREIGN KEY (sites_id) R' 附近使用的正确语法”在第 1 行"
有人可以指出是什么问题吗?