问一下,我想将一个表的一列值减去另一个表里的一列,并将值插入到其中一个表的一列,该怎么写
insert into tables(xx)select aa-bb from t1,t2where t1.a=t2.b