Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What's wrong with the syntax of this create table query?

I’ve tried changing the table name to match and ‘matches’ but I still get the same error.

#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 ''match' (r1 VARCHAR(5), r2 VARCHAR(5), r3 VARCHAR(5), r4 VARCHAR(5), r5 VARCH...' at line 1
CREATE TABLE 'match' (r1 VARCHAR(5), r2 VARCHAR(5), r3 VARCHAR(5), r4 VARCHAR(5), r5 VARCHAR(5));

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

match is a reserved word, use matches again without the single quotes.

CREATE TABLE matches (r1 VARCHAR(5), r2 VARCHAR(5), r3 VARCHAR(5), r4 VARCHAR(5), r5 VARCHAR(5));

hope this helps.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading