index

Bitmap

Oracle bitmap indexes represent matching row sets with bitmaps; useful for some analytical workloads, potentially unsuitable for frequent concurrent updates. PostgreSQL bitmap scans are not a persistent bitmap index type. Target: Oracle 26. Use a disposable database; plan selection is not guaranteed.

Formal Syntax & Structure

sql syntaxsql
CREATE BITMAP INDEX ix ON items(category)

Working Example

Example Snippetsql
CREATE TABLE items(id integer primary key, category integer, price integer, name varchar2(40), active integer); INSERT INTO items VALUES (1,1,10,'Alpha',1); INSERT INTO items VALUES (2,1,20,'Beta',0); INSERT INTO items VALUES (3,2,30,'Gamma',1);CREATE BITMAP INDEX ix ON items(category);SELECT id FROM items WHERE category=2;
SQL Reference