[Dbix-class] same column for more times

Christopher H. Laco claco at chrislaco.com
Mon Feb 5 20:08:31 GMT 2007


Octavian Rasnita wrote:
> Thank you but I already read that and I have also read the comment for it:
> =

> # year =3D 2005 OR year =3D 2004
> =

> But I need year>=3D2001 AND year<=3D2004.
> =

> (with AND and not OR).
> =

> Thanks.
> =

> Octavian

Right combine that snippet, with the docs for SQL::Abstract to get your
answer.

Hint: it has to do with being explicit about your compare operators:

  {year =3D> {'>=3D', 1999}}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20070205/90=
64e171/signature.pgp


More information about the Dbix-class mailing list