Jump to content

query problem


malbolgia

Recommended Posts

im trying this query
INSERT INTO character (charname, charborn, charqual, id) VALUES ('Snoopy', '2006-10-08', 'cool', 'Snoopy');

and i get this 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 'character (charname, charborn, charqual, id) VALUES ('Snoopy', '

i cant seem to see whats wrong

this is the table structure
id varchar(50)
charname varchar(60)
charborn date
charqual varchar(60)
Link to comment
Share on other sites

[a href=\"http://htmlite.com/mysql002a.php\" target=\"_blank\"]http://htmlite.com/mysql002a.php[/a] - CHARACTER is a MySQL reserved word and I bet you can't use reserved words for table names. Change the table name to something else and see.
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.