view tests/random.ur @ 1960:93f3e35a7967

Manual: remove database version numbers from Debian package names, where possible
author Adam Chlipala <adam@chlipala.net>
date Sat, 18 Jan 2014 08:34:19 -0500
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>