view tests/random.ur @ 2035:a3435112b83e

Top.max and Top.min
author Adam Chlipala <adam@chlipala.net>
date Sun, 29 Jun 2014 08:33:47 -0400
parents ac141fbb313a
children
line wrap: on
line source
table t : { A : int }

fun main () : transaction page =
    x <- queryX (SELECT *
                 FROM t
                 ORDER BY RANDOM)
         (fn r => <xml>{[r.T.A]}<br/></xml>);
    return <xml><body>{x}</body></xml>