I am using PHPMyAdmin to create my MySQL database and test it by running some queries on it. I've created the database which was fine but when trying to create a table for that database (using the provided GUI) I keep getting this error:
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 '(32) NOT NULL, `Last_Name ` TEXT(32) NOT NULL, `Username ` VARC
This is the CREATE TABLE syntax that PHPMyAdmin genereates:
SQL-query:
CREATE TABLE `Person` (
`Person_ID ` INT( 10 ) NOT NULL AUTO_INCREMENT ,
`First_Name ` TEXT( 32 ) NOT NULL ,
`Last_Name ` TEXT( 32 ) NOT NULL ,
`Username ` VARCHAR( 32 ) NOT NULL ,
`Password ` VARCHAR( 32 ) NOT NULL ,
`PersonType_ID ` INT( 10 ) NOT NULL ,
PRIMARY KEY ( `Person_ID ` )
) TYPE = MYISAM
I don't understand why it uses all the quotes, I'm confused ?????????
Regards
Wealth-Builderz