MySQL CREATE TABLE 'You have an error in your SQL syntax' error -


i pulling hair out on this. have connected mysql server , trying create table on it:

create table order (     order_id int,     order_is_overnight bit,     order_quantity int,     order_amount double,     order_timestamp datetime ); 

when run get:

error: have error in sql syntax; check manual corresponds mysql server version right syntax use near 'order (         order_id int,         order_is_overnight bit,         order_quantity int,         order_amou' @ line 1 sqlstate:  42000 errorcode: 1064 

this world's vaguest error message, akin java exception says "whoops, went wrong somewhere in code!"

any ideas i'm going awry?! have checked, , rechecked, , rechecked , seems valid/legal create table statement (don't worry performance, indexes, keys, etc.; dummy/test table).

order reserved word, must enclose name in quotes

create table `order` (     order_id int,     order_is_overnight bit,     order_quantity int,     order_amount double,     order_timestamp datetime ); 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -