From: Justin B. <jgb...@gm...> - 2009-09-17 16:04:13
|
Sure, there is a "_max" operator which you can use: http://hackage.haskell.org/packages/archive/haskelldb/0.12/doc/html/Database-HaskellDB-Query.html#v%3A_max On Thu, Sep 17, 2009 at 8:53 AM, Colin Paul Adams <co...@co...> wrote: >>>>>> "Justin" == Justin Bailey <jgb...@gm...> writes: > > Justin> In that case I would use the database driver's support for > Justin> returning auto-increment columns. You'll want to look at > Justin> the specific library you are using to see how to do > Justin> that. The HaskellDB interface may hide that from you - I'm > Justin> not sure. You may want to use HaskellDB just to generate > Justin> the appropriate SQL, which you then execute using the DB > Justin> library. > > This isn't going to work. > > Can I get the MAX of a column using haskelldb syntax? > -- > Colin Adams > Preston Lancashire > |