to this:SELECT column FROM table ORDER BY RAND() LIMIT 20;
my @tickers = $schema->resultset( 'TickerTable' )->search( {}, { order_by => Random(), + columns => ['DisplayName'], + rows => 20 + });
In reply to How to select limited rows randomly in DBIx::Class? by phildeman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |