• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Help fix my error in your SQL syntax?

bobby2guns2003

New Member
SQL query:

--
-- Dumping data for table `wp_posts`
--
INSERT INTO `wp_posts` ( `ID` , `post_title` , `post_servings` , `post_content` , `post_author` , `post_date` , `post_date_gmt` , `post_category` , `post_excerpt` , `post_status` , `comment_status` , `ping_status` , `post_password` , `post_name` , `to_ping` , `pinged` , `post_modified` , `post_modified_gmt` , `post_content_filtered` , `post_parent` , `guid` , `menu_order` , `post_type` , `post_mime_type` , `comment_count` ) ;

MySQL said: Documentation
#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 '' at line 1

what am I doing wrong?
 
Where's "VALUES"?

YOU MUST STATE "VALUES" AFTER THE TABLE NAME
OR!!!
AFTER YOU STATE THE TABLE COLUMS!

Then you would state the values that would go into each colum.

Please check your syntax before asking for help.
 
The field names need no single quotes. :) And as brutetal says, you have provided no values, so there's nothing to insert- hence, the reason it is not working. :)
 
Back
Top