scala - save a column to database using spark -


i'm using spark calculate set of data. have calculated column of table.

for example, table in database named people schema (id,weight,height,salary,...,) , id primary key in table "people". have calculated part of value of column "salary" , i'd update data in database.

my result dataframe named "id_salary" schema(id,salary). sure id in "id_salary" in table "people". i'd update table.

how write code update part of table "people" using dataframe "id_salary" got?


Comments