Re: where x in (a,b,c)

[prev] [thread] [next] [Date index for 2005/04/08]

From: Cees Hek
Subject: Re: where x in (a,b,c)
Date: 14:58 on 08 Apr 2005
On Apr 8, 2005 10:49 AM, Barry Dancis <bdancis@xxxxxxx.xxx> wrote:
>     Is there a way to do a retrieve or search using cdbi for a subset of the
> records using an In operator, i.e. is there something like: 
>   
> my @people = People->retrieve(Name In qw (Ralph Jane Egbert); 

You can do that with Class::DBI::AbstractSearch

my @people = People->search_where(
             Name => { -in => [ qw (Ralph Jane Egbert) ] },
);

Cheers,

Cees

where x in (a,b,c)
Barry Dancis 14:49 on 08 Apr 2005

Re: where x in (a,b,c)
Cees Hek 14:58 on 08 Apr 2005

Re: where x in (a,b,c)
Barry Dancis 16:03 on 08 Apr 2005

Re: where x in (a,b,c)
Perrin Harkins 16:00 on 08 Apr 2005

Re: where x in (a,b,c)
Barry Moore 17:19 on 08 Apr 2005

Generated at 14:42 on 11 Apr 2005 by mariachi v0.52