oracle批量刪除表數(shù)據(jù) oracle如何最快的刪除大數(shù)據(jù)量表中的多個字段?
oracle如何最快的刪除大數(shù)據(jù)量表中的多個字段?建立分區(qū),將需要刪除的數(shù)據(jù)存在特定分區(qū)里,刪除該分區(qū)就可以了。 alter table 表名 drop partition 分區(qū)名 應(yīng)該很快。 or
oracle如何最快的刪除大數(shù)據(jù)量表中的多個字段?
建立分區(qū),將需要刪除的數(shù)據(jù)存在特定分區(qū)里,刪除該分區(qū)就可以了。 alter table 表名 drop partition 分區(qū)名 應(yīng)該很快。
oracle快速刪除一個字段,但是表里有千萬條數(shù)據(jù)?
你可以用CTS啊,例如:create table aa_new as select * from a_old,建新表的時候,可以把那個字段去掉嗎。
如果不是很重要的表,可以用nologging和并行。例: create table aa_new nologging as select /* parallel(t,4)*/ * from a_old t這樣會更快。然后相互rename成自己需要的表名。另別忘了索引。