> select colA * colB as product from tableC
>>
>
> $rs->search({
>    # your conditions
> }, {
>    select => [ \'col1 * colb' ],
>    as     => [ 'product' ],
> });
>

And to make it even nicer:

$rs->search({
   # your conditions
}, {
   columns => { product => \['col1 * colb'] },
});

-- 
fREW Schmidt
http://blog.afoolishmanifesto.com
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to