unique index access question

Post Reply
skalyanaraman
Posts: 109
Joined: Tue May 29, 2001 9:13 pm

unique index access question

Post by skalyanaraman »

Hi,
I have created an unique index on the DOCID column in a table, where DOCID column is varchar(50) and unique alphanumeric.

lets say the unique index name is idxrdocid.

then, if I do
"set indexaccess=1;select DOCID from idxrdocid"

AM I GUARANTEED TO GET THE DOCID'S IN THE ASC SORTED ORDER, EVEN IF I DONT DO AN ORDER BY?
MY TESTING INDICATES THAT.

THANKS!!
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

unique index access question

Post by John »

If you select directly from the index you will get the records back in the indexed order, so in this case yes, they will be in ascending order.
John Turnbull
Thunderstone Software
Post Reply