比如一张表 A a b c2 53 6我需要根据a列和b列的值去查询另一张表,得到的结果相加给c 该怎么做
insert into 表1 (c) select a+b from 表2
update A set c=(select value from B where key = A.a)update A set c=C+(select value from B where key = A.b)