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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:22:47+00:00 2026-05-25T02:22:47+00:00

I have a database db1 which contains tables tbl1 , tbl2 , and tbl3

  • 0

I have a database db1 which contains tables tbl1, tbl2, and tbl3.

I also have an empty database db2.

Can I create a MERGE table mrg1 which merges the contents of tbl1, tbl2, and tbl3 from database db1, but is stored in database db2?

  • 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-25T02:22:48+00:00Added an answer on May 25, 2026 at 2:22 am

    Yes, if your database is set up to allow you to run queries against multiple databases at once. I think it would look something like this,

    INSERT INTO db2.mrg1 (colA,colB,ColC)
    (
      SELECT colA,colB,ColC
      FROM db1.tbl1,db1.tbl2,db1.tbl3
      WHERE [whatever joins your tables together]
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two Database, DB1 and DB2. How can I transfer data of DB1
We have 2 databases - DB1 & DB2. Can I create a table in
I have two databases called DB1 and DB2 on the same database server. I
I have a database (DB1) with one collation and many tables. I've got another
We have 2 databases, say DB1 and DB2. DB1 contains all the stored procedures
I have database with many tables. In the first table, I have a field
I have database, and in one the tables I need change the values of
i have DataBase function that calculate distance by coordinates CREATE OR REPLACE FUNCTION distance(lat1
I've got a large-ish MySQL database which contains weather information. The DB is about
My database has about 30 views, most of which have a reference to another

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.