Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with SQL table creation

Status
Not open for further replies.

djnemisis

Programmer
Joined
Jan 31, 2006
Messages
1
Location
GB
Hi I am using phpMyAdmin and a MYSQL db I have been trying to create a new table called picture however i keep getting an error from mysql and the table wont create. Here is the code that phpMyAdmin creates:

CREATE TABLE `picture` (`picid` INT NOT NULL, `name` VARCHAR, `size` VARCHAR, `type` VARCHAR, `use` VARCHAR, PRIMARY KEY (`picid`))

anyone know what is wrong the error provided gives no hints
 
It would help if you would include the error!
 
You must specify the maximum length for the varchar columns.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top