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 |
|
CrazyT
Yak Posting Veteran
73 Posts |
Posted - 2010-04-28 : 19:28:07
|
| How do i update 2 columns from a select?update tableset column1 = (select value from table where criteria)How do i do this when i want to update two columns? |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
CrazyT
Yak Posting Veteran
73 Posts |
Posted - 2010-04-28 : 19:45:09
|
| thanks -- i found an example where the from statement was a select of the columnsis the join method faster? |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
CrazyT
Yak Posting Veteran
73 Posts |
Posted - 2010-04-28 : 19:53:55
|
| I have about 3M records.I need to update 2 values in table 2 from table 1 -- common column is rowID |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|