[CDBI] Search by "or".

"Praveen Hombaiah" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Message-ID <[email protected]>
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.


-- 
Regards,
Praveen Hombaiah.

_______________________________________________
ClassDBI mailing list
ClassDBI-Ra3b/[email protected]
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.