Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to add a bitmap index with b-tree index

Status
Not open for further replies.

huchen

Programmer
Jan 24, 2006
68
0
0
US
Hello,

I want to add a index to a large table
table_1(state_code, customer_num, other_col)

I want to add an index like :

CREATE BITMAP INDEX IDX_bitmap_1
ON table_1(state_code, customer_num)
TABLESPACE base_index ;

As you know, state_code is only 52, but this table has billions of rows with unique customer_num

I want state_code is bitmap index, but within each code, customer_num is b-tree indexed

How can I do it?
thank you
 
You can't. An index is either b-tree or bitmap. It can't be both. Bitmap indexes are generally on single columns rather than concatenated because they are meant to be used in combination with other bitmap indexed columns.

Why do you think you need an index like that ? What benefit do you think it would give ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top