Am 08.03.2018 um 12:56 schrieb Matthew Somerville:

You could do this:

FixMyStreet::DB->resultset("Table")->search({}, {
     columns => { col => \"left(col, length(col)-9)" },
     distinct => 1,
     order_by => "left(col, length(col)-9)"  });


Thank you VERY much!!!

Andreas

_______________________________________________
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/dbix-class@lists.scsys.co.uk

Reply via email to