我有数百万条记录的表,我添加了两个新列
alter table hr.employees add (ind char(1Byte), remove Char(1 Byte)); commit;
我有另一个视图hr.department,它的数据比这更多,它有这两列。
因此,如果我为这些记录编写和更新,则需要很长时间。
update hr.employees a
set (ind, remove) =(select ind, remove
from hr.department b
where a.dept_id = b.dept_id ) ;
一个小时过去了,更新还在继续。有人可以帮忙吗?