Hi this is my code and it returns "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VALUE, chapter VARCHAR(100) CHARACTER SET utf8 COLLA' at line 2"
CREATE TABLE IF NOT EXISTS texts (
id SERIAL DEFAULT VALUE,
chapter VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci,
text LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
uid INT NOT NULL AUTO_INCREMENT UNIQUE KEY,
time TIMESTAMP,
FULLTEXT (chapter)
)Engine = InnoDB;
I have no idea what is wrong, I was writing it according to MySQL documentation.
I also tried changing this column to
chapter VARCHAR(100) CHARACTER SET utf8, ...
but it returned the same error.