| |

VerySource

 Forgot password?
 Register
Search
View: 633|Reply: 4

How to query two databases with the same structure at one time?

[Copy link]

2

Threads

7

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 United States

Post time: 2020-2-16 22:00:01
| Show all posts |Read mode
How to query two databases with the same structure at one time?
Reply

Use magic Report

0

Threads

48

Posts

30.00

Credits

Newbie

Rank: 1

Credits
30.00

 China

Post time: 2020-4-18 16:45:01
| Show all posts
Do view
Reply

Use magic Report

0

Threads

48

Posts

30.00

Credits

Newbie

Rank: 1

Credits
30.00

 China

Post time: 2020-4-18 18:15:01
| Show all posts
select * from a.dbo.tablename
union all select * from b.dbo.tablename
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-4-18 20:45:01
| Show all posts
union or union all
Reply

Use magic Report

2

Threads

7

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-4-18 22:15:01
| Show all posts
Thank you
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list