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 7995715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:30:14+00:00 2026-06-04T14:30:14+00:00

I want to copy one table to another one. For example I have table

  • 0

I want to copy one table to another one.

For example I have table Data(ID, time, serial_number...) and I have Temp_data(ID, time, serial_number...)

How to copy all items without primary key (ID).

I am using MYSQL,
I have tried INSERT INTO Data SELECT * FROM Temp_data;

Problem is in primary key. both of the tables already have values and I need everything to be copied except ID.

  • 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-04T14:30:15+00:00Added an answer on June 4, 2026 at 2:30 pm

    Instead of SELECT *, spell out the columns that you want:

    INSERT INTO Data (time, serial_number...)
      SELECT (time, serial_number...) FROM Temp_data;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to copy data from one column to another column of other table.
i want to Copy data one table to another table my table out put
I want to copy data from one table to another in MySQL. Table 1
I want to copy data from one table into another table where the columns
I want to copy all data from one database to another which has the
i want copy data from from a detailsview(tableName=Jobs) to another table(tablename=Company) But it shows
Im trying to copy over data from one table to another in the same
I need to copy some data from one table to another in Oracle, while
Sometimes if I want to quickly copy records from one table to another (that
I want to copy data from two columns in a 'table1' to another table

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.