Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8197925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:50:35+00:00 2026-06-07T05:50:35+00:00

This is really super weird, maybe someone knows the answer, I have a table

  • 0

This is really super weird, maybe someone knows the answer,

I have a table like this

mysql> describe sweeps;
+----------------+------------------+------+-----+---------------------+-----------------------------+
| Field          | Type             | Null | Key | Default             | Extra                       |
+----------------+------------------+------+-----+---------------------+-----------------------------+
| entity_id      | int(20) unsigned | NO   | PRI | NULL                | auto_increment              |
| fb_id          | varchar(120)     | YES  |     | NULL                |                             |
| title          | varchar(5)       | YES  |     | NULL                |                             |
| first_name     | varchar(30)      | YES  |     | NULL                |                             |
| last_name      | varchar(30)      | YES  |     | NULL                |                             |
| birthday_month | int(2) unsigned  | YES  |     | NULL                |                             |
| birthday_day   | int(2) unsigned  | YES  |     | NULL                |                             |
| birthday_year  | int(4) unsigned  | YES  |     | NULL                |                             |
| created_at     | datetime         | YES  |     | 0000-00-00 00:00:00 |                             |
| last_submit    | timestamp        | NO   |     | CURRENT_TIMESTAMP   | on update CURRENT_TIMESTAMP |
+----------------+------------------+------+-----+---------------------+-----------------------------+

That will NOT accept an INSERT if I just put it in a single line like so

mysql> `sweeps` (entity_id,fb_id,title,first_name,last_name,birthday_month,birthday_day,birthday_year,created_at) VALUES (1,'fooID1','mr','John','Doe',1,1,1999,NOW());
ERROR 1064 (42000): 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 '`sweeps` (entity_id,fb_id,title,first_name,last_name,birthday_month,birthday_day' at line 1

But strangely enough, if I space it out like this, it accepts it without errors? Why is this?

mysql> INSERT INTO `sweeps` (
    ->   entity_id,
    ->   fb_id,
    ->   title,
    ->   first_name,
    ->   last_name,
    ->   birthday_month,
    ->   birthday_day,
    ->   birthday_year,
    ->   created_at
    -> ) VALUES (
    ->   1,
    ->   'fooID1',
    ->   'mr',
    ->   'John',
    ->   'Doe',
    ->   1,
    ->   1,
    ->   1999,
    ->   NOW()
    -> );
Query OK, 1 row affected (0.41 sec)

mysql> SELECT * FROM sweeps;
+-----------+--------+-------+------------+-----------+----------------+--------------+---------------+---------------------+---------------------+
| entity_id | fb_id  | title | first_name | last_name | birthday_month | birthday_day | birthday_year | created_at          | last_submit         |
+-----------+--------+-------+------------+-----------+----------------+--------------+---------------+---------------------+---------------------+
|         1 | fooID1 | mr    | John       | Doe       |              1 |            1 |          1999 | 2012-07-10 10:16:58 | 2012-07-10 10:16:58 |
+-----------+--------+-------+------------+-----------+----------------+--------------+---------------+---------------------+---------------------+
1 row in set (0.04 sec)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T05:50:36+00:00Added an answer on June 7, 2026 at 5:50 am

    It doesn’t insert because you are missing the INSERT INTO in your command:

    mysql> `sweeps` (entity_id,fb_id,title,first_name,last_name,...
    

    Should be

    mysql> INSERT INTO `sweeps` (entity_id,fb_id,title,first_name,last_name,...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is really weird in my perspective. I've never seen anything like it. I
This really seems like a bug to me, but perhaps some databinding gurus can
hey guys having this really simple problem but cant seem to figure out have
I've got this really basic table structure: Posts PostXTags PostTags There is a 1-n
This is really looks like some magic is going on and I'm interested to
I have stumbled on a weird thing. It looks like UIView 's contentScaleFactor is
I have a really weird problem with Xcode 3.2.5 In a normal code sequence
This is weird. I've got a super simple project to learn NSTableView, and it's
This really should be so very simple... I have an asp.net master page which
I am facing a really weird error,while trying to insert into a table called

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.