Name: !id/tRanCE. 2010-06-11 20:30
>>Why does the MySQL interpreter produce the error message shown below when the following table creation command is executed?
create table order (
order_id int(8) not null auto_increment,
cust_id int(8),
product_id int(5),
primary key (order_id)
);
ERROR 1064: You have an error in your SQL syntax near 'order (
orderid int(8) not null auto_increment,
cust_id int(8),
product_id int(5' at line 1
How could you fix this problem?
create table order (
order_id int(8) not null auto_increment,
cust_id int(8),
product_id int(5),
primary key (order_id)
);
ERROR 1064: You have an error in your SQL syntax near 'order (
orderid int(8) not null auto_increment,
cust_id int(8),
product_id int(5' at line 1
How could you fix this problem?