Hi all,

I've got a table where two of the columns (say a and b) are simple integers and I want to select rows where b - a < 100. How do I go about that in DBIx.

The equivalent SQL would be:
SELECT * FROM table WHERE b - a < 100;

I've had a look at the Cookbook and FAQ, but can't see a solution there.
TIA

_______________________________________________
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