Andrew Scott wrote:
> Is this possible, I thought I had once this once before but I don't seem to
> be able to get it to work:-(
> 
> Update table1
> Set    table1.col1 = table2.col3
> Select table.col1, table2, col3
>>From   table2 inner join table1 on table2.id = table1.id 
> 
> And yes before I forget this is MS SQL Server 2000:-)
> 
Take out that select part, and it should work fine...
UPDATE table1
SET table1.col1 = table2.col3
FROM table2 INNER JOIN table1 ON table2.id = table1.id

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:2642
Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.6

Reply via email to