2 echo LIKE operator char datatype testing
;
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 Statement Executed
: Rows Affected
= 1
10 Statement Executed
: Rows Affected
= 1
11 Statement Executed
: Rows Affected
= 1
12 Statement Executed
: Rows Affected
= 1
13 Statement Executed
: Rows Affected
= 1
14 Statement Executed
: Rows Affected
= 1
15 echo select * from t1
;
16 ---------------------------------------------------------
18 ---------------------------------------------------------
31 echo select * from t1 where f1 LIKE
'UPP%';
32 ---------------------------------------------------------
34 ---------------------------------------------------------
37 echo select * from t1 where f1 LIKE
'upp%';
38 ---------------------------------------------------------
40 ---------------------------------------------------------
45 echo select * from t1 where f1 LIKE
'upper%letter';
46 ---------------------------------------------------------
48 ---------------------------------------------------------
52 echo select * from t1 where f1 LIKE
'upper____letter';
53 ---------------------------------------------------------
55 ---------------------------------------------------------
58 echo select * from t1 where f1 like
'UP__R%SE';
59 ---------------------------------------------------------
61 ---------------------------------------------------------
64 echo select * from t1 where f1 like
'UP__R%SE' and f2
= 'B';
65 ---------------------------------------------------------
67 ---------------------------------------------------------
69 echo select * from t1 where f1 like
'UP__R%SE' and f2
= 'UPPER';
70 ---------------------------------------------------------
72 ---------------------------------------------------------
75 echo select * from t1 where f1 like
'UP__R%SE' and f2 like
'UPPER';
76 ---------------------------------------------------------
78 ---------------------------------------------------------