1
drop table if exists `T1`;
2
drop table if exists `T2`;
3
drop table if exists `T3`;
4
drop table if exists `T4`;
5
drop table if exists `T5`;
6
drop table if exists `T6`;
7
drop table if exists `T7`;
8
drop table if exists `T8`;
9
drop table if exists `T9`;
10
drop table if exists `T10`;
11
drop table if exists `T11`;
12
drop table if exists `T12`;
14
SET character_set_database = utf8;
15
CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = innodb;
16
CREATE TABLE `T2` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = innodb;
17
CREATE TABLE `T3` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = innodb;
18
CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = myisam;
19
CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = myisam;
20
CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = myisam;
21
CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = heap;
22
CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = heap;
23
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = heap;
24
CREATE TABLE `T10` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = bdb;
25
CREATE TABLE `T11` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = bdb;
26
CREATE TABLE `T12` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = bdb;
27
INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
28
INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
29
INSERT INTO `T3` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
30
INSERT INTO `T4` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
31
INSERT INTO `T5` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
32
INSERT INTO `T6` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
33
INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
34
INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
35
INSERT INTO `T9` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
36
INSERT INTO `T10` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
37
INSERT INTO `T11` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
38
INSERT INTO `T12` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
39
SELECT `C1`, RIGHT(`C1`,0) FROM `T1`;
47
SELECT `C1`, RIGHT(`C1`,1) FROM `T1`;
55
SELECT `C1`, RIGHT(`C1`,2) FROM `T1`;
63
SELECT `C1`, RIGHT(`C1`,3) FROM `T1`;
71
SELECT `C1`, RIGHT(`C1`,4) FROM `T1`;
79
SELECT `C1`, RIGHT(`C1`,5) FROM `T1`;
87
SELECT `C1`, RIGHT(`C1`,0) FROM `T2`;
95
SELECT `C1`, RIGHT(`C1`,1) FROM `T2`;
103
SELECT `C1`, RIGHT(`C1`,2) FROM `T2`;
111
SELECT `C1`, RIGHT(`C1`,3) FROM `T2`;
119
SELECT `C1`, RIGHT(`C1`,4) FROM `T2`;
127
SELECT `C1`, RIGHT(`C1`,5) FROM `T2`;
135
SELECT `C1`, RIGHT(`C1`,0) FROM `T3`;
143
SELECT `C1`, RIGHT(`C1`,1) FROM `T3`;
151
SELECT `C1`, RIGHT(`C1`,2) FROM `T3`;
159
SELECT `C1`, RIGHT(`C1`,3) FROM `T3`;
167
SELECT `C1`, RIGHT(`C1`,4) FROM `T3`;
175
SELECT `C1`, RIGHT(`C1`,5) FROM `T3`;
183
SELECT `C1`, RIGHT(`C1`,0) FROM `T4`;
191
SELECT `C1`, RIGHT(`C1`,1) FROM `T4`;
199
SELECT `C1`, RIGHT(`C1`,2) FROM `T4`;
207
SELECT `C1`, RIGHT(`C1`,3) FROM `T4`;
215
SELECT `C1`, RIGHT(`C1`,4) FROM `T4`;
223
SELECT `C1`, RIGHT(`C1`,5) FROM `T4`;
231
SELECT `C1`, RIGHT(`C1`,0) FROM `T5`;
239
SELECT `C1`, RIGHT(`C1`,1) FROM `T5`;
247
SELECT `C1`, RIGHT(`C1`,2) FROM `T5`;
255
SELECT `C1`, RIGHT(`C1`,3) FROM `T5`;
263
SELECT `C1`, RIGHT(`C1`,4) FROM `T5`;
271
SELECT `C1`, RIGHT(`C1`,5) FROM `T5`;
279
SELECT `C1`, RIGHT(`C1`,0) FROM `T6`;
287
SELECT `C1`, RIGHT(`C1`,1) FROM `T6`;
295
SELECT `C1`, RIGHT(`C1`,2) FROM `T6`;
303
SELECT `C1`, RIGHT(`C1`,3) FROM `T6`;
311
SELECT `C1`, RIGHT(`C1`,4) FROM `T6`;
319
SELECT `C1`, RIGHT(`C1`,5) FROM `T6`;
327
SELECT `C1`, RIGHT(`C1`,0) FROM `T7`;
335
SELECT `C1`, RIGHT(`C1`,1) FROM `T7`;
343
SELECT `C1`, RIGHT(`C1`,2) FROM `T7`;
351
SELECT `C1`, RIGHT(`C1`,3) FROM `T7`;
359
SELECT `C1`, RIGHT(`C1`,4) FROM `T7`;
367
SELECT `C1`, RIGHT(`C1`,5) FROM `T7`;
375
SELECT `C1`, RIGHT(`C1`,0) FROM `T8`;
383
SELECT `C1`, RIGHT(`C1`,1) FROM `T8`;
391
SELECT `C1`, RIGHT(`C1`,2) FROM `T8`;
399
SELECT `C1`, RIGHT(`C1`,3) FROM `T8`;
407
SELECT `C1`, RIGHT(`C1`,4) FROM `T8`;
415
SELECT `C1`, RIGHT(`C1`,5) FROM `T8`;
423
SELECT `C1`, RIGHT(`C1`,0) FROM `T9`;
431
SELECT `C1`, RIGHT(`C1`,1) FROM `T9`;
439
SELECT `C1`, RIGHT(`C1`,2) FROM `T9`;
447
SELECT `C1`, RIGHT(`C1`,3) FROM `T9`;
455
SELECT `C1`, RIGHT(`C1`,4) FROM `T9`;
463
SELECT `C1`, RIGHT(`C1`,5) FROM `T9`;
471
SELECT `C1`, RIGHT(`C1`,0) FROM `T10`;
479
SELECT `C1`, RIGHT(`C1`,1) FROM `T10`;
487
SELECT `C1`, RIGHT(`C1`,2) FROM `T10`;
495
SELECT `C1`, RIGHT(`C1`,3) FROM `T10`;
503
SELECT `C1`, RIGHT(`C1`,4) FROM `T10`;
511
SELECT `C1`, RIGHT(`C1`,5) FROM `T10`;
519
SELECT `C1`, RIGHT(`C1`,0) FROM `T11`;
527
SELECT `C1`, RIGHT(`C1`,1) FROM `T11`;
535
SELECT `C1`, RIGHT(`C1`,2) FROM `T11`;
543
SELECT `C1`, RIGHT(`C1`,3) FROM `T11`;
551
SELECT `C1`, RIGHT(`C1`,4) FROM `T11`;
559
SELECT `C1`, RIGHT(`C1`,5) FROM `T11`;
567
SELECT `C1`, RIGHT(`C1`,0) FROM `T12`;
575
SELECT `C1`, RIGHT(`C1`,1) FROM `T12`;
583
SELECT `C1`, RIGHT(`C1`,2) FROM `T12`;
591
SELECT `C1`, RIGHT(`C1`,3) FROM `T12`;
599
SELECT `C1`, RIGHT(`C1`,4) FROM `T12`;
607
SELECT `C1`, RIGHT(`C1`,5) FROM `T12`;