Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

BITAND optimized query

602382Oct 9 2007 — edited Oct 9 2007
Hi,

I need to optimize this simple query:
select * from tabl1 where bitand(x, col1) != 0;

col1 is just an integer type that contains a bit map value.
An index on col1 does not do the job I always end up with full table scan. Does an Function Based Index help me out?

I need a helping hand,

Thanks,
Dieter
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 6 2007
Added on Oct 9 2007
3 comments
771 views