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 |
|
eugz
Posting Yak Master
210 Posts |
Posted - 2008-02-01 : 12:24:24
|
Hi All.I have problem to update table. What is my misstakeupdate dbo.Table1set Field1_id = s.Field1_idselect Field3_id, Field4from dbo.Table1join dbo.Table2 son Field4 = s.Field2 Thanks |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-02-01 : 12:29:11
|
| Why are you mixing select with update? take the select awayupdate tset t.Field1_id = s.Field1_idfrom dbo.Table1 tjoin dbo.Table2 son Field4 = s.Field2i cant understand 'select Field3_id, Field4 ' statement though. Are you trying to simultaneously select?You need to give it as a seperate statement then |
 |
|
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
Posted - 2008-02-01 : 12:29:39
|
| If your intention to return what was updated check out OUTPUT from books online.Be One with the OptimizerTG |
 |
|
|
|
|
|