[CDBI] Search by "or".

Praveen Hombaiah phombaiah at gmail.com
Tue Nov 28 04:17:05 GMT 2006

For a given column Is it possible to search for more than one value?

for instance how would I search for an employee with the first name of
either "William" or "Bill"?

# Search for "William".
@employees = Comp::Employee->search( first_name => 'William' );

is "retrieve_from_sql" the only way to do this?

Thanks in advance for your help.

Praveen Hombaiah.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digitalcraftsmen.net/pipermail/classdbi/attachments/20061127/4c2f9bc7/attachment.htm

More information about the ClassDBI mailing list