The native C API for Berkeley DB is a key/value pair interface. The basic operations are puts/gets. 'LIKE' is a SQL construct that is used in predicate comparisons. To create an equivalent using the C API, then create a cursor that iterates over all of your records, for each record returned from the cursor you would need to do a string compare and select out the ones that match. A C string compare would be the equivalent of doing the 'LIKE' in SQL. We have lots of good information on cursors in our programmers reference guide.