åå¾ããçµæã map ãããgrepãã使ã£ã¦ãã«ããã«ããã¦ããããã§ããã© æ¤ç´¢ããã¨ãã«ã§ããªãããªã¨æãæ¸ãã¦ã¿ã¾ããã Friendãã¼ãã«ã¿ããã®ããã£ãã¨ã㦠my $friends = $schema->resultset('Friend')->search( {}, { '+select' => [ \ 'RAND() as rand', ], '+as' => ['rand'], cache => 1, page => 1, rows => 3, order_by => 'rand' } ãããªæãã§ã§ãã¾ããã +asã¯ãªãã¦ãããã§ããã©ããã¨ããªãã®ã§ããã ã¨ããã£ãã®ã§ããä»ããªãã¨ã«ã©ã ãããã¦ã¨ãã¦ãã¾ãã®ã§ ã¤ãã¾ããã çµæãããªã®ãåºã¾ã SELECT me.seq, me.name, RAND() as rand FROM FRIEND me O
{{#tags}}- {{label}}
{{/tags}}