You need to escape reserved words like order
with backticks
CREATE TABLE `order` ( ...
or better use another name instead.
More Related Contents:
- Which DB technology is sued to solve the following search issue? [closed]
- How to select the nth row in a SQL database table?
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- Error Code: 2013. Lost connection to MySQL server during query
- What’s faster, SELECT DISTINCT or GROUP BY in MySQL?
- Storing JSON in database vs. having a new column for each key
- How do I restore a dump file from mysqldump?
- MySQL Query to select data from last week?
- Using an Alias in SQL Calculations
- Can a table field contain a hyphen?
- Adding a leading zero to some values in column in MySQL
- View’s SELECT contains a subquery in the FROM clause
- Check for x consecutive days – given timestamps in database
- MySQL Insert Into from one Database in another
- How do I get the ID of multiple inserted rows in MySQL?
- How to insert data to MySQL with auto-incremented column(field)?
- Does mysql have the equivalent of Oracle’s “analytic functions”?
- Case statement in MySQL
- Replace Into Query Syntax
- Remove special characters from a database field
- Using reserved words in column names
- MySQL query, MAX() + GROUP BY
- MySQL – Replace Character in Columns
- FIND_IN_SET with multiple value [duplicate]
- Foreign key constraints: When to use ON UPDATE and ON DELETE
- What is the difference between SQL and MySQL? [closed]
- Selecting distinct 2 columns combination in mysql
- How to store a one to many relation in MySQL database?
- MySQL – Complexity of: SELECT COUNT(*) FROM MyTable;
- MySQL: Computed Column