Jump to content

cant insert one field into table


otuatail

Recommended Posts

Hi MySql objects to one field in the table champions. The field is Group. Can't understand why.

 

CREATE TABLE `Champions` (
  `ID` int(11) NOT NULL auto_increment,
  `Date` datetime default NULL,
  `Channel` tinyint(1) default NULL,
  `Venue` tinyint(1) default NULL,
  `Home` tinyint(1) default NULL,
  `Away` tinyint(1) default NULL,
  `Group` tinyint(1) default NULL,
  `Visible` char(1) NOT NULL default 'Y',
  `HomeScore` tinyint(1) default NULL,
  `AwayScore` tinyint(1) default NULL,
  `Round` tinyint(1) default NULL,
  PRIMARY KEY  (`ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 PACK_KEYS=0 AUTO_INCREMENT=1;



INSERT INTO Champions 

(Date,Channel,Venue,Home,Away,Group,Visible,HomeScore,AwayScore,Round) VALUES 

('2010-12-14 1:0:00',0,29,25,26,1,'Y',-1,-1,2) 


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 'Group,Visible,HomeScore,AwayScore,Round) VALUES 

('2010-12-14 1:0:00',0,29,25' at line 3

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/221501-cant-insert-one-field-into-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.