目前数据库主要使用的版本为Oracle11g、Oracle12c,Oracle19c,也有部分Oracle10g仍然在使用
在大表情况下,如果需要为表添加列,如何提高效率呢,语句参考如下:
--oracle10g
alter table test add (insert_time date null);
--oracle11g not null 提高速度
alter table test add (insert_time date default '' not null);
--oracle12c
alter table test add (insert_time date default '' null);