phildeman has asked for the wisdom of the Perl Monks concerning the following question:
to this:SELECT column FROM table ORDER BY RAND() LIMIT 20;
my @tickers = $schema->resultset( 'TickerTable' )->search( {}, { order_by => Random(), + columns => ['DisplayName'], + rows => 20 + });
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to select limited rows randomly in DBIx::Class?
by Your Mother (Archbishop) on Jan 28, 2015 at 23:25 UTC | |
Re: How to select limited rows randomly in DBIx::Class?
by duelafn (Parson) on Jan 29, 2015 at 02:20 UTC | |
Re: How to select limited rows randomly in DBIx::Class?
by erix (Prior) on Jan 28, 2015 at 22:12 UTC |