2 echo binary data
type 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 echo select * from t1
;
11 ---------------------------------------------------------
13 ---------------------------------------------------------
21 echo select * from t1 where f2
= '12fe';
22 ---------------------------------------------------------
24 ---------------------------------------------------------
28 echo select * from t1 where f2
!= '323a34' AND f1
= 13;
29 ---------------------------------------------------------
31 ---------------------------------------------------------
34 echo select * from t1 where f1
= 12 AND f2
>= '245af';
35 ---------------------------------------------------------
37 ---------------------------------------------------------
39 echo select * from t1 where f1
= 12 OR f2
> 'dc23';
40 ---------------------------------------------------------
42 ---------------------------------------------------------
47 echo select * from t1 where f1
= 12 OR f2
< 'dc23';
48 ---------------------------------------------------------
50 ---------------------------------------------------------
55 echo select * from t1 where f1
= 12 OR f2
<> '245af';
56 ---------------------------------------------------------
58 ---------------------------------------------------------
65 echo select * from t1 where NOT f2
='12fe';
66 ---------------------------------------------------------
68 ---------------------------------------------------------
74 echo select * from t1 where f2
!= '12fe';
75 ---------------------------------------------------------
77 ---------------------------------------------------------
83 echo select * from t1 where NOT f2
!= '12fe';
84 ---------------------------------------------------------
86 ---------------------------------------------------------
90 echo select * from t1 where f1
= f2
;
91 ---------------------------------------------------------
93 ---------------------------------------------------------
95 echo select * from t1 where f2
in ('245af','12fe');
96 ---------------------------------------------------------
98 ---------------------------------------------------------
104 echo select * from t1 where f2 between
'00000000' and
'ffffffff';
105 ---------------------------------------------------------
107 ---------------------------------------------------------
109 echo select * from t1 where f2 between
'122' and
'12a2';
110 ---------------------------------------------------------
112 ---------------------------------------------------------
114 echo update t1
set f2
= '435f3' where f1
!= 13 and f2
='323a34' ;
115 Statement Executed
: Rows Affected
= 1
116 ---------------------------------------------------------
118 ---------------------------------------------------------
126 echo update t1
set f2
= '23abc' where f2
= '245af';
127 Statement Executed
: Rows Affected
= 2
128 ---------------------------------------------------------
130 ---------------------------------------------------------
138 echo delete from t1 where f2
= '12fe';
139 Statement Executed
: Rows Affected
= 2
140 ---------------------------------------------------------
142 ---------------------------------------------------------
150 echo binary data
type testing with primary key
;
152 Statement Executed
: Rows Affected
= 1
153 Statement Executed
: Rows Affected
= 1
154 Statement Executed
: Rows Affected
= 1
155 Statement execute failed with error
-21
156 Statement Executed
: Rows Affected
= 1
157 Statement Executed
: Rows Affected
= 1
158 echo select * from t1
;
159 ---------------------------------------------------------
161 ---------------------------------------------------------
168 echo select * from t1 where f2
= '12fe';
169 ---------------------------------------------------------
171 ---------------------------------------------------------
174 echo select * from t1 where f2
!= '323a34' AND f1
= 13;
175 ---------------------------------------------------------
177 ---------------------------------------------------------
179 echo select * from t1 where f1
= 12 AND f2
>= '245af';
180 ---------------------------------------------------------
182 ---------------------------------------------------------
184 echo select * from t1 where f1
= 12 OR f2
> 'dc23';
185 ---------------------------------------------------------
187 ---------------------------------------------------------
192 echo select * from t1 where f1
= 12 OR f2
< 'dc23';
193 ---------------------------------------------------------
195 ---------------------------------------------------------
199 echo select * from t1 where f1
= 12 OR f2
<> '245af';
200 ---------------------------------------------------------
202 ---------------------------------------------------------
208 echo select * from t1 where NOT f2
='12fe';
209 ---------------------------------------------------------
211 ---------------------------------------------------------
217 echo select * from t1 where f2
!= '12fe';
218 ---------------------------------------------------------
220 ---------------------------------------------------------
226 echo select * from t1 where NOT f2
!= '12fe';
227 ---------------------------------------------------------
229 ---------------------------------------------------------
232 echo select * from t1 where f1
= f2
;
233 ---------------------------------------------------------
235 ---------------------------------------------------------
237 echo select * from t1 where f2
in ('245af','12fe');
238 ---------------------------------------------------------
240 ---------------------------------------------------------
244 echo select * from t1 where f2 between
'00000000' and
'ffffffff';
245 ---------------------------------------------------------
247 ---------------------------------------------------------
249 echo select * from t1 where f2 between
'122' and
'12a2';
250 ---------------------------------------------------------
252 ---------------------------------------------------------
254 echo update t1
set f2
= '435f3' where f1
!= 13 and f2
='323a34' ;
255 Statement prepare failed with error
-21
256 ---------------------------------------------------------
258 ---------------------------------------------------------
265 echo delete from t1 where f2
= '23abc';
266 Statement Executed
: Rows Affected
= 0
267 ---------------------------------------------------------
269 ---------------------------------------------------------
278 echo binary data
type testing with primary key
;
279 echo create table t1
(f1 int
, f2 binary
(4) DEFAULT
'abcd12' ,primary key
(f2
));
281 Statement Executed
: Rows Affected
= 1
282 Statement Executed
: Rows Affected
= 1
283 Statement Executed
: Rows Affected
= 1
284 Statement Executed
: Rows Affected
= 1
285 Statement execute failed with error
-21
286 Statement Executed
: Rows Affected
= 1
287 Statement Executed
: Rows Affected
= 1
288 echo select * from t1
;
289 ---------------------------------------------------------
291 ---------------------------------------------------------
299 echo select * from t1 where f2
= '12fe';
300 ---------------------------------------------------------
302 ---------------------------------------------------------
305 echo select * from t1 where f2
!= '323a34' AND f1
= 13;
306 ---------------------------------------------------------
308 ---------------------------------------------------------
310 echo select * from t1 where f1
= 12 AND f2
>= '245af';
311 ---------------------------------------------------------
313 ---------------------------------------------------------
315 echo select * from t1 where f1
= 12 OR f2
> 'dc23';
316 ---------------------------------------------------------
318 ---------------------------------------------------------
324 echo select * from t1 where f1
= 12 OR f2
< 'dc23';
325 ---------------------------------------------------------
327 ---------------------------------------------------------
331 echo select * from t1 where f1
= 12 OR f2
<> '245af';
332 ---------------------------------------------------------
334 ---------------------------------------------------------
341 echo select * from t1 where NOT f2
='12fe';
342 ---------------------------------------------------------
344 ---------------------------------------------------------
351 echo select * from t1 where f2
!= '12fe';
352 ---------------------------------------------------------
354 ---------------------------------------------------------
361 echo select * from t1 where NOT f2
!= '12fe';
362 ---------------------------------------------------------
364 ---------------------------------------------------------
367 echo select * from t1 where f1
= f2
;
368 ---------------------------------------------------------
370 ---------------------------------------------------------
372 echo select * from t1 where f2
in ('245af','12fe');
373 ---------------------------------------------------------
375 ---------------------------------------------------------
379 echo select * from t1 where f2 between
'00000000' and
'ffffffff';
380 ---------------------------------------------------------
382 ---------------------------------------------------------
384 echo select * from t1 where f2 between
'122' and
'12a2';
385 ---------------------------------------------------------
387 ---------------------------------------------------------
389 echo update t1
set f2
= '435f3' where f1
!= 13 and f2
='323a34' ;
390 Statement prepare failed with error
-21
391 ---------------------------------------------------------
393 ---------------------------------------------------------
401 echo delete from t1 where f2
= '12fe';
402 Statement Executed
: Rows Affected
= 1
403 ---------------------------------------------------------
405 ---------------------------------------------------------
413 Statement execute failed with error
-4