inquiry
Error Static analysis:
1 errors were found during analysis.
A closing bracket was expected. (near ")" at position 173) SQL query: Copy
CREATE table QuestionS( Question_ID INT PRIMARY KEY, Question_Text VARCHAR(45567), Correct_Answer VARCHAR(45), FOREIGN KEY Challenge_ID REFERENCES table Challengers );
MySQL said: Documentation
- 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'REFERENCES table Challengers )' at line 5
Answer Answered by Ian Gilfillan in this comment.
See https://mariadb.com/kb/en/create-table/#index-definitions and https://mariadb.com/kb/en/foreign-keys/.
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.