Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
rudba
Constraint Violating Yak Guru
415 Posts |
Posted - 2009-08-19 : 14:22:28
|
| How to update data from one table to another tableupdate tbl1 set Field1=tbl2.field2 where tbl1.ID=tbl2.id |
|
|
russell
Pyro-ma-ni-yak
5072 Posts |
Posted - 2009-08-19 : 14:44:22
|
| [code]update aset Field1 = b.field2from tbl1 ajoin tbl2 bOn a.ID = b.id2[/code] |
 |
|
|
|
|
|