[CDBI] Simple join

Jon Molin jon.molin at gmail.com
Fri Dec 30 00:16:46 GMT 2005


Hi list,

I've just started looking at Class:DBI after only using DBI directly with
own written sql. I've read through the beginners guide and there's one thing
I wonder about:

In the search_like example:

my @cd = Music::CD->search_like(title => 'Hits%', artist => 'Various%');

It searches for "cd.title like 'Hits%' or artist.name like 'Varios%'"? I
can't really understand how to make a  relationship that makes such a join.
I need one of them with a similar db but can't find examples except this in
the documentation.

Any pointers?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digitalcraftsmen.net/mailman/private/classdbi/attachments/20051230/2877b0e6/attachment.html


More information about the ClassDBI mailing list