计算年龄 select trunc(months_between(sysdate, to_date(&birthday, 'yyyymmdd')) / 12, 2) from dual;
更新多列
update A t1 set (t1.col1,t1.col2)=(select t2.col1,t2.col2 from B t2 where t1.id=t2.id)
where A.id is not null
计算年龄 select trunc(months_between(sysdate, to_date(&birthday, 'yyyymmdd')) / 12, 2) from dual;
更新多列
update A t1 set (t1.col1,t1.col2)=(select t2.col1,t2.col2 from B t2 where t1.id=t2.id)
where A.id is not null