Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.