Truncate a table with multiple list partitions in oracle 而不必提及分区名称
Truncate a table with multiple list partitions in oracle without having to mention the partition name
我有一个包含多个列表分区的 table。我基本上想一次截断所有分区而不必提及分区名称。我确实尝试使用普通截断 table tabl_name 并且它似乎有效。我对 oracle 中的分区很陌生,不太确定这是否是正确的方法。
我也从阅读中知道我可以使用 alter table truncate partition 命令删除多个分区。
谢谢,
凯文
是的,截断 table 会截断所有分区。
If table is partitioned, then all partitions or subpartitions, as well as the LOB data and LOB index segments for each partition or subpartition, are truncated.
还要注意一些已记录的副作用,例如将不可用的索引变为可用。
我有一个包含多个列表分区的 table。我基本上想一次截断所有分区而不必提及分区名称。我确实尝试使用普通截断 table tabl_name 并且它似乎有效。我对 oracle 中的分区很陌生,不太确定这是否是正确的方法。
我也从阅读中知道我可以使用 alter table truncate partition 命令删除多个分区。
谢谢, 凯文
是的,截断 table 会截断所有分区。
If table is partitioned, then all partitions or subpartitions, as well as the LOB data and LOB index segments for each partition or subpartition, are truncated.
还要注意一些已记录的副作用,例如将不可用的索引变为可用。