Need help in partial-key search -
08-31-2006
, 09:55 PM
I saw pervious posts that had similer question, but I just wanted to
make sure whether it
is possible ine BDB or not.
I am writing a program wherein I have to search for a partial key
e.g.
DB entries (keys):
AAAA
AABB
BBAA
BAAB
CCAA
BBCC
CBBA
CBBC
If I search for 'AA' (key) from above DB, I want
following set in my cursor!
AAAA
AABB
BBAA
BAAB
CCAA
First of all is it possible? I wrote a simple c
function which will do simple strstr call to check
for srting, but I am not sure of the return values
in case if doesnt match
Please help me.
I am doing it in C under linux and windows
Regards
Jamsa S S |