[PerlChina] 关于DBIx::Class的一个查询问题。

rorot yang.liana at gmail.com
Tue Dec 25 20:48:28 PST 2007


:) 谢谢Fayland!

On Dec 25, 2007 2:41 PM, Fayland Lam <fayland at gmail.com> wrote:

> rorot wrote:
> > 诸位好,
> >
> > 前段时间大家推荐DBIx::Class, 我用了,确实很好。但现在碰到一个问题。
> >
> > my $rs = $schema->resultset("table")->serach ({});
>
>
> OK, I'm wrong here. better use
>
> my $rs = $schema->resultset("table")->search({}, { where => \'permit &
> 0x4 = 1' });
>
> Thanks.
>
>
>
> >
> > 现在有一个列叫做 permit, 如果要搜索permit & 0x4 = 1 的项,改如何写这个
> > search呢?
> >
> > rorot
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > China-pm mailing list
> > China-pm at pm.org
> > http://mail.pm.org/mailman/listinfo/china-pm
>
>
> --
> Fayland Lam // http://www.fayland.org/
> Foorum based on Catalyst // http://www.foorumbbs.com/
>
> _______________________________________________
> China-pm mailing list
> China-pm at pm.org
> http://mail.pm.org/mailman/listinfo/china-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/china-pm/attachments/20071226/8dbaa1e7/attachment.html 


More information about the China-pm mailing list