Subject RE: indexes are one way streets
Author Michael Weissenbacher
well, this is the problem: this does not work. one can specify ascending or
descending only at the beginning like in:
create descending index myindex on people (first_name, birthday)
but not for every part of the index seperately.
any ideas/comments?

michael weissenbacher

-----Original Message-----
From: Nando Dessena [mailto:nandod@...]
Sent: Monday, August 12, 2002 11:14 AM
To: ib-support@yahoogroups.com
Subject: Re: indexes are one way streets (was: RE: [ib-support] Speed on
select with order by ......)


Michael,

> i have some question about this "one-way" streets:
> what do i do if for example i want to order persons by their first name
> ascending and by their birthday descending. if i want to create a
> multi-column index for this it can't be ascending and also not descending.

create index myindex on people (first_name, birthday desc)

Not sure about the syntax, but it should be something like that.
I don't think Paul meant that multicolumn indexes cannot have a
direction specified for each segment, when he said that indexes are one
way streets; just that their use in queries must match the directions in
their definitions (unlike what happens with other RDBMSs).
Ciao
--
____
_/\/ando


To unsubscribe from this group, send an email to:
ib-support-unsubscribe@egroups.com



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/