dragon
03-17-2002, 08:35 PM
I'm new with PHP and MySQL. I finally was able to create a database, a user and I started creating a table.
All of this from HR control panel (I select MySQL etc...)
I enetered the fields (5 in my case and tried to select the attributes and the rest, but I'm not familiar with it).
When I click on save, I get an error:
Database test - table jobs running on localhost
Error
SQL-query :
CREATE TABLE `jobs` (`Description` TEXT(40) BINARY NOT NULL AUTO_INCREMENT PRIMARY KEY, `SalaryMINM` TEXT(10) BINARY DEFAULT 'MIN' AUTO_INCREMENT, `SalaryMAX` TEXT(10) BINARY DEFAULT 'MAX' AUTO_INCREMENT, `Industry` TEXT(15) BINARY AUTO_INCREMENT, `Comments` TEXT(30) BINARY DEFAULT 'NO Comments' AUTO_INCREMENT) COMMENT = 'table comments'
MySQL said:
You have an error in your SQL syntax near '(40) BINARY NOT NULL AUTO_INCREMENT PRIMARY KEY, `SalaryMINM` TEXT(10) BINARY
I'm not ure what the problem is.
I've tried to go to the documentation, but it's GREEK to me and also it doesn't talk about the control panel at all.
I see often the MySQL> (prompt). How do you get there? or what is the equivalent on the windows interface in control panel?
Please help.
I'm just trying to create a table so I can enter data and then be able to display it on a browser.
Thanks in advance,
Anthony
All of this from HR control panel (I select MySQL etc...)
I enetered the fields (5 in my case and tried to select the attributes and the rest, but I'm not familiar with it).
When I click on save, I get an error:
Database test - table jobs running on localhost
Error
SQL-query :
CREATE TABLE `jobs` (`Description` TEXT(40) BINARY NOT NULL AUTO_INCREMENT PRIMARY KEY, `SalaryMINM` TEXT(10) BINARY DEFAULT 'MIN' AUTO_INCREMENT, `SalaryMAX` TEXT(10) BINARY DEFAULT 'MAX' AUTO_INCREMENT, `Industry` TEXT(15) BINARY AUTO_INCREMENT, `Comments` TEXT(30) BINARY DEFAULT 'NO Comments' AUTO_INCREMENT) COMMENT = 'table comments'
MySQL said:
You have an error in your SQL syntax near '(40) BINARY NOT NULL AUTO_INCREMENT PRIMARY KEY, `SalaryMINM` TEXT(10) BINARY
I'm not ure what the problem is.
I've tried to go to the documentation, but it's GREEK to me and also it doesn't talk about the control panel at all.
I see often the MySQL> (prompt). How do you get there? or what is the equivalent on the windows interface in control panel?
Please help.
I'm just trying to create a table so I can enter data and then be able to display it on a browser.
Thanks in advance,
Anthony