1 echo Description
:BETWEEN and IN
test;
3 Statement Executed
: Rows Affected
= 1
4 Statement Executed
: Rows Affected
= 1
5 Statement Executed
: Rows Affected
= 1
6 Statement Executed
: Rows Affected
= 1
7 Statement Executed
: Rows Affected
= 1
8 Statement Executed
: Rows Affected
= 1
9 echo select * from t1 where f1 between
12 and
14;
10 ---------------------------------------------------------
12 ---------------------------------------------------------
17 echo select * from t1 where f1 not between
12 and
14;
18 ---------------------------------------------------------
20 ---------------------------------------------------------
25 echo select * from t1 where f3 between
12 and
14;
26 ---------------------------------------------------------
28 ---------------------------------------------------------
33 echo select * from t1 where f1 IN
(12, 14, 50);
34 ---------------------------------------------------------
36 ---------------------------------------------------------
41 echo select * from t1 where f1 IN
(12, 14, 50) AND f3 IN
(50);
42 ---------------------------------------------------------
44 ---------------------------------------------------------
49 echo select * from t1 where f1 IN
(12, 14, 50) OR f3 IN
(50);
50 ---------------------------------------------------------
52 ---------------------------------------------------------
57 echo select * from t1 where f1 IN
(12, 14, 50) AND f3 between
12 and
14;
58 ---------------------------------------------------------
60 ---------------------------------------------------------
64 echo select * from t1 where f1 NOT IN
(12, 14, 50);
65 ---------------------------------------------------------
67 ---------------------------------------------------------