dbTalk Databases Forums  

Need help in partial-key search

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Need help in partial-key search in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jamsass@gmail.com
 
Posts: n/a

Default 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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.