niahossain
New Member
- Messages
- 16
- Reaction score
- 0
- Points
- 0
I went to phpmyadmin, and clicked on the SQL quary link on the upper left corner. in the quary box, i typed in the following to create a table :
And i got the following error message :
</H1>
what should i do ? i am new at this, and i want to create a search option for my database, but i'm not even being able to create a table. Please help !
Code:
Create table Products {
Product id bigint(20) NOT NULL auto_increment,
Name varchar(40) NOT NULL default '',
Shop varchar(100) NOT NULL default '',
Price varchar(20) NOT NULL default '',
Category varchar(20) NOT NULL default '',
PRIMARY KEY (Productid)
);
And i got the following error message :
Code:
<H1>Error[/B]
SQL query:
CREATE TABLE Products{Product id bigint( 20 ) NOT NULL AUTO_INCREMENT ,
Name varchar( 40 ) NOT NULL default '',
Shop varchar( 100 ) NOT NULL default '',
Price varchar( 20 ) NOT NULL default '',
Category varchar( 20 ) NOT NULL default '',
PRIMARY KEY ( Productid )
)
MySQL said:
#1064 - 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 '{
Product id bigint(20) NOT NULL auto_increment,
Name varchar(40) NOT NULL def' at line 1
what should i do ? i am new at this, and i want to create a search option for my database, but i'm not even being able to create a table. Please help !