March 2012
Intermediate to advanced
442 pages
9h 31m
English
If we are processing a large amount of data from a temporary table, then we can use indexes to get performance benefits. We can create indexes on regular columns as well as on XML columns. The indexes will also be stored in the same table space in which the temporary table is defined.
Index creation on a DGTT is very similar to regular tables. Let's see how to do that:
DECLARE GLOBAL TEMPORARY TABLE sample_xml (empno INT,
sal_rise_date DATE,
sal_dtls XML)
ON COMMIT DELETE ROWS
NOT LOGGED
IN user_temp_tbsp;
CREATE INDEX statement to create an index on a temporary table. ...Read now
Unlock full access