Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting Data from first database and Updating in 2nd database

Status
Not open for further replies.

Cenedra

Programmer
Jan 2, 2003
114
US
Hello everyone,

I looked through the FAQs but couldn't find anything on this.

What I have is a client table in one database, and I need to select ID, RACE from that table in database 1 and update the same client's race in database #2. What is the syntax for doing this?

Thanks a ton
Cen
 
Try:

Code:
Update T2
    Set T2.Field1 = T1.Field1
From Table2 T2, Table1 T1
Where T2.ID = T1.ID

Hopefully this will help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top