Mercurial > urweb
comparison tests/join.ur @ 750:059074c8d2fc
LEFT JOIN
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 28 Apr 2009 11:05:28 -0400 |
parents | 16bfd9e244cd |
children | f95d652086cd |
comparison
equal
deleted
inserted
replaced
749:16bfd9e244cd | 750:059074c8d2fc |
---|---|
1 table t : { A : int } | 1 table t : { A : int, B : string, C : option string } |
2 | 2 |
3 fun main () = | 3 fun main () = |
4 r <- oneRow (SELECT * FROM t); | 4 r <- oneRow (SELECT * FROM t); |
5 r <- oneRow (SELECT * FROM t AS T1, t AS T2); | 5 r <- oneRow (SELECT * FROM t AS T1, t AS T2); |
6 r <- oneRow (SELECT * FROM t AS T1 CROSS JOIN t AS T2); | 6 r <- oneRow (SELECT * FROM t AS T1 CROSS JOIN t AS T2); |
7 r <- oneRow (SELECT * FROM t AS T1 JOIN t AS T2 ON T1.A = T2.A); | 7 r <- oneRow (SELECT * FROM t AS T1 JOIN t AS T2 ON T1.A = T2.A); |
8 r <- oneRow (SELECT * FROM t AS T1 LEFT JOIN t AS T2 ON T1.A = T2.A); | |
8 return <xml/> | 9 return <xml/> |