Also note that empid is the index with the cluster clause (clustering index)
and therefore you don't need to mention it in the reorg command. It will
"see" it as the clustering and use it to retrieve the rows in the reorg to
rebuild the table in the sequence of the indexscan and as mentioned, no
sort.
HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Mark A" <no****@nowhere.com> a écrit dans le message de
news:no********************@comcast.com...
<da*******@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com... Running DB2 version 8.1.1 on AIX 5.1.1
The table (employee) is being reorged and has a clustering index
(empid).
Is there any different between these two commands?
db2 reorg table employee index empid allow no access indexscan
db2 reorg table employee index empid allow no access
Thanks
Gerry
There is no functional difference in the result. If you use "indexscan",
DB2 will use the index to retrieve the rows and avoid an external sort of the
data.