comparison tests/coalesce.ur @ 1602:e44be6ece475

COALESCE
author Adam Chlipala <adam@chlipala.net>
date Sat, 19 Nov 2011 10:43:57 -0500
parents
children
comparison
equal deleted inserted replaced
1601:78e0d56b594e 1602:e44be6ece475
1 table t : { A : option int }
2
3 fun main () : transaction page =
4 queryX (SELECT COALESCE(t.A, 13)
5 FROM t)
6 (fn r => <xml>{[r.1]},</xml>)