Thank you, n_i!
But you should see the Infocenter of the correct release, in fact:
"This clause is not supported for indexes on a created temporary table or a declared temporary table (SQLSTATE 42601)"
so, is "temporary table" equal to partitioned tables? Just to confirm, can I know the source of the quote that you gave me? Maybe is it relative oldest release of DB2?
From:
http://publib.boulder.ibm.com/infoce.../r0000919.html
that is:
IN tablespace-name
The IN clause is supported only for nonpartitioned indexes. Specifying the IN clause for partitioned indexes results in SQLSTATE 42601.
Specifies the table space in which the index is to be created. This clause is not supported for indexes on a created temporary table or a declared temporary table (SQLSTATE 42601). You can specify this clause even if the INDEX IN clause was specified when the table was created. This will override that clause.
The table space specified by tablespace-name must be in the same database partition group as the data table spaces for the table and manage space in the same way as the other table spaces of the partitioned table (SQLSTATE 42838); it must be a table space on which the authorization ID of the statement holds the USE privilege.
If the IN clause is not specified, the index is created in the table space that was specified by the INDEX IN clause on the CREATE TABLE statement. If no INDEX IN clause was specified, the table space of the first visible or attached data partition of the table is used. This is the first partition in the list of data partitions that are sorted on the basis of range specifications. If the IN clause is not specified, the authorization ID of the statement is not required to have the USE privilege on the default table space.
So: Is "This clause is not supported for indexes on a created temporary table or a declared temporary table (SQLSTATE 42601)" equal to
Thank you in advance!
Fabio