Reputation: 14666
lets say our table has the following structure
col1 | col2 | col3
I want to sum col1 and col2 then update the col3 with the result
Thanks
Upvotes: 1
Views: 243
Reputation: 137312
UPDATE tablename SET col3 = col1 + col2
Upvotes: 6