1 echo create table t1
(f1 int
,f2
date);
3 echo insert into t1 values
(1,'2008-10-29');
4 Statement Executed
: Rows Affected
= 1
5 echo insert into t1 values
(2,'28-12-2008');
6 Statement Executed
: Rows Affected
= 1
7 echo insert into t1 values
(3,'2008-2-30');
8 Statement Executed
: Rows Affected
= 1
9 echo insert into t1 values
(4,'2008-3- -20');
10 Statement Executed
: Rows Affected
= 1
11 echo insert into t1 values
(5,NULL
);
12 Statement Executed
: Rows Affected
= 1
13 echo insert into t1 values
(6,'2007-05-05');
14 Statement Executed
: Rows Affected
= 1
15 echo select * from t1
;
16 ---------------------------------------------------------
18 ---------------------------------------------------------
26 echo select * from t1 where f2
<='2007-05-05';
27 ---------------------------------------------------------
29 ---------------------------------------------------------
35 echo select * from t1 where f2
>='2007-05-05';
36 ---------------------------------------------------------
38 ---------------------------------------------------------
42 echo select * from t1 where f2
='2007-05-05';
43 ---------------------------------------------------------
45 ---------------------------------------------------------