Oracle SQL: Selecting data and partition name from table and truncating partitions
问题 This is a two part question: 1) Is it possible to retrieve the name of the partition that data lives in using a select statement, based on its ROWID or some other identifier? eg. SELECT DATA_ID, CATEGORY, VALUE, **PARTITION_NAME** FROM MYTABLE WHERE CATEGORY = 'ABC' 2) Is it possible to truncate a single partition of a table, without deleting the data stored in the other partitions? I have a table with over a billion rows, hash partitioned by category. Only a handful of the categories have