comparison tests/random.ur @ 1682:ac141fbb313a

'ORDER BY RANDOM' (based on a patch from Ron de Bruijn)
author Adam Chlipala <adam@chlipala.net>
date Thu, 02 Feb 2012 11:40:10 -0500
parents
children
comparison
equal deleted inserted replaced
1681:e8a84494d2c0 1682:ac141fbb313a
1 table t : { A : int }
2
3 fun main () : transaction page =
4 x <- queryX (SELECT *
5 FROM t
6 ORDER BY RANDOM)
7 (fn r => <xml>{[r.T.A]}<br/></xml>);
8 return <xml><body>{x}</body></xml>