views:

39

answers:

1

Hello

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

+6  A: 
UPDATE tablename SET col3 = col1 + col2
gahooa