summaryrefslogtreecommitdiff
path: root/tests/random.ur
blob: b20063020a1c9f9b01e55bdeee2ab2c846e2bd06 (plain)
1
2
3
4
5
6
7
8
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>