comparison tests/limit.lac @ 232:a338da9d82f3

OFFSET
author Adam Chlipala <adamc@hcoop.net>
date Thu, 21 Aug 2008 16:03:45 -0400
parents eadeea528f75
children
comparison
equal deleted inserted replaced
231:eadeea528f75 232:a338da9d82f3
1 table t : {A : int, B : string, C : float} 1 table t : {A : int, B : string, C : float}
2 2
3 val q1 = (SELECT * FROM t LIMIT 42) 3 val q1 = (SELECT * FROM t LIMIT 42)
4 val q2 = fn n => (SELECT * FROM t LIMIT {n}) 4 val q2 = fn n => (SELECT * FROM t LIMIT {n})
5
6 val q3 = (SELECT * FROM t OFFSET 3)
7 val q4 = fn n => fn m => (SELECT * FROM t LIMIT {n} OFFSET {m})