Getting the "latest" related record from a SQL DB
Andrew Beverley
andy at andybev.com
Sun Oct 12 23:01:46 BST 2014
On Sun, 2014-10-12 at 17:25 +0100, Andrew Beverley wrote:
> On Sun, 2014-10-12 at 17:00 +0100, Andrew Beverley wrote:
> > And then add the relevant search criteria when using it:
> >
> > $search = {
> > {'album' => 'album_later'},
> > ...
> > }
>
> Oops, copy and paste error. More like:
>
> $rs->search({ 'album_later.artist_id' => undef });
And add the required join of course...
join => {'album' => 'album_later'}
More information about the london.pm
mailing list