Created
January 5, 2012 02:37
-
-
Save nagoodman/1563428 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0: jdbc:luciddb:> create table applib.tst1 ( d date) | |
. . . . . . . . > ; | |
No rows affected (0.306 seconds) | |
0: jdbc:luciddb:> insert into applib.tst1 values DATE'2012-01-06'; | |
1 row affected (0.055 seconds) | |
0: jdbc:luciddb:> insert into applib.tst1 values DATE'2012-01-01'; | |
1 row affected (0.13 seconds) | |
0: jdbc:luciddb:> insert into applib.tst1 values DATE'2012-01-03'; | |
1 row affected (0.121 seconds) | |
0: jdbc:luciddb:> select * from applib.tst1 where d between DATE'2011-12-31' and DATE'2012-01-30'; | |
+-------------+ | |
| D | | |
+-------------+ | |
| 2012-01-06 | | |
| 2012-01-01 | | |
| 2012-01-03 | | |
+-------------+ | |
3 rows selected (1.22 seconds) | |
0: jdbc:luciddb:> select * from applib.tst1 where d between DATE'2011-12-31' and DATE'2012-01-01'; | |
+-------------+ | |
| D | | |
+-------------+ | |
| 2012-01-01 | | |
+-------------+ | |
1 row selected (0.103 seconds) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment