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

  • Home
  • SEARCH
  • 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 6670639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:17:32+00:00 2026-05-26T03:17:32+00:00

Is it possible to insert columns into a MySQL table?? I’ve created a table

  • 0

Is it possible to insert columns into a MySQL table??

I’ve created a table and named it “my_table” – I do not understand, why MySQL does not eats my syntax…

INSERT INTO "my_table"(
    "item" char(1) NOT NULL DEFAULT '',
    "price" int(10) NOT NULL DEFAULT '3000',
    "level" int(10) NOT NULL DEFAULT '1000',
    "super" char(1) NOT NULL DEFAULT '',
    "play" char(1) NOT NULL DEFAULT ''
)

Error message:

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 ‘”my_table”( “item” char(1) NOT NULL DEFAULT ”, “price” i’ at line 1

So what’s wrong with my syntax ?

  • 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-05-26T03:17:33+00:00Added an answer on May 26, 2026 at 3:17 am

    If you’re trying to add columns to an already created table you must use ALTER.

    ALTER TABLE my_table ADD item char(1) NOT NULL DEFAULT '';
    

    http://dev.mysql.com/doc/refman/5.1/en/alter-table.html
    http://www.techiecorner.com/560/mysql-how-to-add-column-to-existing-table/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to INSERT...ON DUPLICATE KEY UPDATE into a table on the current
Is it possible to insert into a table variable without defining the schema? I
Does anyone know if it is possible to insert NULL into a column with
Is this possible or do I have to list all the columns? INSERT INTO
How can I insert NULL value into INT column with MySQL? Is it possible?
is it possible to insert a csv file into a table and instruct the
Is it possible in MySQL to insert a row into table2 automatically when a
Is it possible to insert a button into a word document and call as
Is it possible to insert multiple sets of values to a SQLite table in
Is it possible to insert information into the gridview's pager, like Showing 10 of

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.