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

Fayland Lam fayland at gmail.com
Mon Dec 24 22:41:58 PST 2007


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/ 



More information about the China-pm mailing list