Re: [GENERAL] Indexing question

Поиск
Список
Период
Сортировка
Искать

Re: [GENERAL] Indexing question

От:
Andreas Kretschmer <akretschmer@spamfence.net>
Дата:
amit sehas  wrote:

> In SQL, given a table T, with two fields f1, f2, 
> 
> is it possible to create an index such that the same record is indexed
> in the index, once with field f1 and once with field f2.  (I am not
> looking for a compound index in which the key would look like  f2>, instead there should be two entries in the index  and ).  
> 
> we have a few use cases for the above, perhaps we need to alter the
> schema somehow to accommodate the above, 

2 separate indexes? One on f1 and one on f2?


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

FAQ