Jump to content

Create Table


otuatail

Recommended Posts

Sorry guys but this is doing my head in. I extracted a table structure from onre database using phpMyadmin. When I try to crate the table on a diffrent database I get an 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 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=1' at line 10

 

 

This is the injection

 

CREATE TABLE IF NOT EXISTS `EventsSport` (

  `ID` int(11) NOT NULL auto_increment,

  `Stamp` varchar(14) default NULL,

  `League` char(50) NOT NULL default '',

  `Description` char(50) NOT NULL default '',

  `Channel` char(10) NOT NULL default '',

  `Result` char(10) NOT NULL default '',

  `Visible` char(1) NOT NULL default '',

  PRIMARY KEY  (`ID`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;

 

Any ideas

 

Desmond.

 

Link to comment
https://forums.phpfreaks.com/topic/144203-create-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.