Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   SQL Statements > SELECT >

Ordering by Rowids

You can specify the ROWID keyword in the ORDER BY clause. This specifies the rowid column, a hidden column in nonfragmented tables and in fragmented tables that were created with the WITH ROWIDS clause. The rowid column contains a unique internal record number that is associated with a row in a table. (It is recommended, however, that you utilize primary keys as your access method, rather than exploiting the rowid column.)

The ORDER BY clause cannot specify the rowid column if the table from which you are selecting is a fragmented table that has no rowid column.

In Extended Parallel Server, you cannot specify the ROWID keyword in the ORDER BY clause unless you also included ROWID in the Projection clause.

In Dynamic Server, you do not need to include the ROWID keyword in the Projection clause when you specify ROWID in the ORDER BY clause.

For further information about rowid values and how to use the rowid column in column expressions, see WITH ROWIDS Option (IDS) and Using Rowids (IDS).

Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]