| |

VerySource

 Forgot password?
 Register
Search
Author: fujun1982

Seeking: Insert a table data into an existing table

[Copy link]

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-27 22:15:01
| Show all posts
correct:
Rename table B after rebuilding the index on table C
Reply

Use magic Report

0

Threads

126

Posts

73.00

Credits

Newbie

Rank: 1

Credits
73.00

 Italy

Post time: 2020-7-27 23:30:01
| Show all posts
Link server+

INSET into B
SELECT * FROM LinkServer.dbo.A where NOT EXISTS (SELECT 1 FROM B WHERE primary key=A. primary key)
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