Axel
06-12-2010, 11:42 PM
Hello Habboxforum, I come back to you in an hour of desperate need.
I'm trying to create a database in mySQL, which has 6 tables, but only 3 of them work... here is the sql...
http://img526.imageshack.us/img526/3618/sql.png
And here are the errors I get...
ERROR 1007 (HY000): Can't create database 'shopping'; database exists
Database changed
Query OK, 0 rows affected (0.03 sec)
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '(), T
otal_Price Double, Cust_Login varchar(20), primary key(Shopping_Cart_ID), f' at
line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '), Pr
ice DOUBLE(), primary key(Shopping_Cart_ID), primary key(Item_Code), foreig' at
line 1
Query OK, 0 rows affected (0.02 sec)
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near ' Cate
gory_Code int(5), primary key(Item_Type_Number), foreign key(Category_Code)' at
line 1
Query OK, 0 rows affected (0.02 sec)
I can't figure why I'm getting errors... any help is really appreciated.
I'm trying to create a database in mySQL, which has 6 tables, but only 3 of them work... here is the sql...
http://img526.imageshack.us/img526/3618/sql.png
And here are the errors I get...
ERROR 1007 (HY000): Can't create database 'shopping'; database exists
Database changed
Query OK, 0 rows affected (0.03 sec)
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '(), T
otal_Price Double, Cust_Login varchar(20), primary key(Shopping_Cart_ID), f' at
line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '), Pr
ice DOUBLE(), primary key(Shopping_Cart_ID), primary key(Item_Code), foreig' at
line 1
Query OK, 0 rows affected (0.02 sec)
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near ' Cate
gory_Code int(5), primary key(Item_Type_Number), foreign key(Category_Code)' at
line 1
Query OK, 0 rows affected (0.02 sec)
I can't figure why I'm getting errors... any help is really appreciated.