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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:28:48+00:00 2026-06-06T11:28:48+00:00

I have three mysql table from same database Db1. Three tables have following columns.

  • 0

I have three mysql table from same database Db1.

Three tables have following columns.

Table 1:
Name
City
Branch

Table 2:
Age
Address
Country

Table 3:
No columns.

I want to copy Table1.Name and Table2.Age to Table 3. How can I do it?

  • 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-06T11:28:49+00:00Added an answer on June 6, 2026 at 11:28 am

    This makes little sense if table1 and table2 can not be joined and table 3 doesn’t have the 2 columns. If you can join:

    insert into table3 (name, age)
    select table1.name, table2.age
    from table1 join table2 on (table1.columnToLinkFromTable1 = table2.columnToLinkFromTable2)
    

    You could also do it like this, but of course it doesn’t make much sense:

    insert into table3 (name, age)
        select table1.name, table2.age
        from table1, table2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Provided that I have the following result set from a mysql database table: +----+------+-------+
I have a MySQL query that: gets data from three tables linked by unique
I have a mysql table with three columns: username, location, timestamp. This is basically
I have multiple columns in a mySQL table. Three of the columns are named
Using MySQL, I have three tables: projects : ID name 1 birthday party 2
i am reading data from a mysql database table. I have populated a dropdown
I have three mysql tables items =========== id title items_in_categories ============================ id item_id category_id
I need help with a MySQL query. I have three tables: `product_category` ( `id`
i have a t_class table in mySql, in this table there are 3 columns,
I have a MySQL database set-up in a hierarchy style. There are 4 tables

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.