Error creating table: You have an error in your SQL syntax near ‘order( order_id INT UNSIGNED NOT NULL AUTO_INCREMENT, user_id ‘ at line 1 [duplicate]

You need to escape reserved words like order with backticks

CREATE TABLE `order` ( ...

or better use another name instead.

Leave a Comment