Jump to content

[SOLVED] Help with Insert


Gluten

Recommended Posts

Hi everyone, First time posting so bare with me =)  For some reason this Insert will not work no matter how much tinkering I do.  I've stared at this query for about two days and nothing has jumped out at me. 

 

INSERT INTO game_stats( GameName, Keywords, PublisherID, DeveloperID, Genre, Price, Requirements, Recommended, Multiplayer, ESRB, Gamestop, GameURL, Release, TentRelease, Platform, Description, UserID ) 
VALUES (

'Guitar Hero III: Legends of Rock', 'harmonix, guitar, music', '61', '92', 'Music', '89.99', 'Wii', 'Wii', '1-2 Players, Nintendo WFC Support', 'Teen', NULL , 'http://www.guitarhero.com', '2007-10-28', NULL , 'Nintendo Wii', 'Crank Up the Volume and prepare to rock around the globe with Guitar Hero III: Legends of Rock. Battle against some of the greatest legends to ever shred on a guitar and become one yourself. Take your shredding skills online against other Guitar Hero players from around the world. Grab your Guitar Hero Wireless Les Paul or Kramer Striker Guitar Controller and unleash your inner rock legend.', '2');
) 

 

When I run this through the script or the mysql console I get the follow error. 

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 'Release, TentRelease, Platform, Description, UserID)' at line 13

 

Thanks in advance!

Link to comment
Share on other sites

try this

 

INSERT INTO game_stats( `GameName`, `Keywords`, `PublisherID`, `DeveloperID`, `Genre`, `Price`, `Requirements`, `Recommended`, `Multiplayer`, `ESRB`, `Gamestop`, `GameURL`, `Release`, `TentRelease`, `Platform`, `Description`, `UserID` ) 
VALUES (

'Guitar Hero III: Legends of Rock', 'harmonix, guitar, music', '61', '92', 'Music', '89.99', 'Wii', 'Wii', '1-2 Players, Nintendo WFC Support', 'Teen', NULL , 'http://www.guitarhero.com', '2007-10-28', NULL , 'Nintendo Wii', 'Crank Up the Volume and prepare to rock around the globe with Guitar Hero III: Legends of Rock. Battle against some of the greatest legends to ever shred on a guitar and become one yourself. Take your shredding skills online against other Guitar Hero players from around the world. Grab your Guitar Hero Wireless Les Paul or Kramer Striker Guitar Controller and unleash your inner rock legend.', '2');
) 

Link to comment
Share on other sites

No good with that either this is what I got with that change. 

 

INSERT INTO game_stats( 'GameName', 'Keywords', 'PublisherID', 'DeveloperID', 'Genre', 'Price', 'Requirements', 'Recommended', 'Multiplayer', 'ESRB', 'Gamestop', 'GameURL', 'Release', 'TentRelease', 'Platform', 'Description', 'UserID' ) 
VALUES (

'Guitar Hero III: Legends of Rock', 'harmonix, guitar, music', '61', '92', 'Music', '89.99', 'Wii', 'Wii', '1-2 Players, Nintendo WFC Support', 'Teen', NULL , 'http://www.guitarhero.com', '2007-10-28', NULL , 'Nintendo Wii', 'Crank Up the Volume and prepare to rock around the globe with Guitar Hero III: Legends of Rock. Battle against some of the greatest legends to ever shred on a guitar and become one yourself. Take your shredding skills online against other Guitar Hero players from around the world. Grab your Guitar Hero Wireless Les Paul or Kramer Striker Guitar Controller and unleash your inner rock legend.', '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 ''GameName', 'Keywords', 'PublisherID', 'DeveloperID', 'Genre', 'Price', 'Require' at line 1 

Link to comment
Share on other sites

Ahh that makes sense.  I am sure they notified us, I'm just not on that list for notification =)  You'd think I be.  Thanks everyone!!!

What I mean what that there were "incomptable changes" between versions, so it could have affected your data and your queries!

Link to comment
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.