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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:25:40+00:00 2026-05-13T22:25:40+00:00

Is it possible to import the attributes of one table, then I put it

  • 0

Is it possible to import the attributes of one table, then I put it into another table using a query in mysql?

For example I have table1 with attributes lname, fname, mname
And I want to put those attributes into table2.

Is there any query that could do that? I’m imagining that the table2 has one attribute that could later be dropped so that it will be the same as table1.

  • 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-13T22:25:41+00:00Added an answer on May 13, 2026 at 10:25 pm

    I am not entirely sure what you are asking.

    If you want to copy the structure of table1 into a new table, do something like this:

    CREATE TABLE table2 LIKE table1;
    

    If you want to copy existing values from one table to another, you can then use the INSERT…SELECT syntax as follows:

    INSERT INTO table2 (lname, fname, mname)
         SELECT t1.lname, 
                t1.fname, 
                t1.mname
           FROM table1 t1;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

it is possible to import the css file from another server? let's say i
Summary: Is it possible to: Import data into Hadoop with the «MongoDB Connector for
Is it possible to use @import in one css file like this. @import file1
Possible Duplicate: Best practice: Import mySQL file in PHP; split queries How to import
Using import datetime in python, is it possible to take a formatted time/date string
Is it possible to add some additional attributes to my components which are then
Possible Duplicate: When using lxml, can the XML be rendered without namespace attributes? How
Is it possible to import a namespace from an assembly that is not in
Is it possible to import a shared object (without linking the program with it)
How is it possible to run import win32api successfully on a 64bit maya version

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.