~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
drop table if exists `‚s‚P`;
2
drop table if exists `‚s‚Q`;
3
drop table if exists `‚s‚R`;
4
drop table if exists `‚s‚S`;
5
drop table if exists `‚s‚T`;
6
drop table if exists `‚s‚U`;
7
drop table if exists `‚s‚V`;
8
drop table if exists `‚s‚W`;
9
drop table if exists `‚s‚X`;
10
drop table if exists `‚s‚P‚O`;
11
drop table if exists `‚s‚P‚P`;
12
drop table if exists `‚s‚P‚Q`;
13
SET NAMES sjis;
14
SET character_set_database = sjis;
15
CREATE TABLE `‚s‚P` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = innodb;
16
CREATE TABLE `‚s‚Q` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = innodb;
17
CREATE TABLE `‚s‚R` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = innodb;
18
CREATE TABLE `‚s‚S` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = myisam;
19
CREATE TABLE `‚s‚T` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = myisam;
20
CREATE TABLE `‚s‚U` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = myisam;
21
CREATE TABLE `‚s‚V` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = heap;
22
CREATE TABLE `‚s‚W` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = heap;
23
CREATE TABLE `‚s‚X` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = heap;
24
CREATE TABLE `‚s‚P‚O` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = bdb;
25
CREATE TABLE `‚s‚P‚P` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = bdb;
26
CREATE TABLE `‚s‚P‚Q` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = bdb;
27
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `‚s‚P`;
28
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `‚s‚Q`;
29
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `‚s‚R`;
30
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `‚s‚S`;
31
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `‚s‚T`;
32
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `‚s‚U`;
33
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `‚s‚V`;
34
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `‚s‚W`;
35
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `‚s‚X`;
36
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `‚s‚P‚O`;
37
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `‚s‚P‚P`;
38
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `‚s‚P‚Q`;
39
SELECT * FROM `‚s‚P` WHERE `‚b‚P` = '°±²³Žµ¶·ž¹º»ŒœŸ¿';
40
‚b‚P
41
°±²³Žµ¶·ž¹º»ŒœŸ¿
42
SELECT * FROM `‚s‚Q` WHERE `‚b‚P` = 'E‚Ÿ‚ ‚¡‚¢‚£‚€‚¥‚Š‚§‚š‚©‚ª‚«‚¬‚­‚®‚¯‚°‚±';
43
‚b‚P
44
E‚Ÿ‚ ‚¡‚¢‚£‚€‚¥‚Š‚§‚š‚©‚ª‚«‚¬‚­‚®‚¯‚°‚±
45
SELECT * FROM `‚s‚R` WHERE `‚b‚P` = 'ƒ\\•\—\\‰\Ž\\“\”\–\˜\‘\’\™\š\›\œ\\ž\';
46
‚b‚P
47
ƒ\\•\—\\‰\Ž\\“\”\–\˜\‘\’\™\š\›\œ\\ž\
48
SELECT * FROM `‚s‚S` WHERE `‚b‚P` = '°±²³Žµ¶·ž¹º»ŒœŸ¿';
49
‚b‚P
50
°±²³Žµ¶·ž¹º»ŒœŸ¿
51
SELECT * FROM `‚s‚T` WHERE `‚b‚P` = 'E‚Ÿ‚ ‚¡‚¢‚£‚€‚¥‚Š‚§‚š‚©‚ª‚«‚¬‚­‚®‚¯‚°‚±';
52
‚b‚P
53
E‚Ÿ‚ ‚¡‚¢‚£‚€‚¥‚Š‚§‚š‚©‚ª‚«‚¬‚­‚®‚¯‚°‚±
54
SELECT * FROM `‚s‚U` WHERE `‚b‚P` = 'ƒ\\•\—\\‰\Ž\\“\”\–\˜\‘\’\™\š\›\œ\\ž\';
55
‚b‚P
56
ƒ\\•\—\\‰\Ž\\“\”\–\˜\‘\’\™\š\›\œ\\ž\
57
SELECT * FROM `‚s‚V` WHERE `‚b‚P` = '°±²³Žµ¶·ž¹º»ŒœŸ¿';
58
‚b‚P
59
°±²³Žµ¶·ž¹º»ŒœŸ¿
60
SELECT * FROM `‚s‚W` WHERE `‚b‚P` = 'E‚Ÿ‚ ‚¡‚¢‚£‚€‚¥‚Š‚§‚š‚©‚ª‚«‚¬‚­‚®‚¯‚°‚±';
61
‚b‚P
62
E‚Ÿ‚ ‚¡‚¢‚£‚€‚¥‚Š‚§‚š‚©‚ª‚«‚¬‚­‚®‚¯‚°‚±
63
SELECT * FROM `‚s‚X` WHERE `‚b‚P` = 'ƒ\\•\—\\‰\Ž\\“\”\–\˜\‘\’\™\š\›\œ\\ž\';
64
‚b‚P
65
ƒ\\•\—\\‰\Ž\\“\”\–\˜\‘\’\™\š\›\œ\\ž\
66
SELECT * FROM `‚s‚P‚O` WHERE `‚b‚P` = '°±²³Žµ¶·ž¹º»ŒœŸ¿';
67
‚b‚P
68
°±²³Žµ¶·ž¹º»ŒœŸ¿
69
SELECT * FROM `‚s‚P‚P` WHERE `‚b‚P` = 'E‚Ÿ‚ ‚¡‚¢‚£‚€‚¥‚Š‚§‚š‚©‚ª‚«‚¬‚­‚®‚¯‚°‚±';
70
‚b‚P
71
E‚Ÿ‚ ‚¡‚¢‚£‚€‚¥‚Š‚§‚š‚©‚ª‚«‚¬‚­‚®‚¯‚°‚±
72
SELECT * FROM `‚s‚P‚Q` WHERE `‚b‚P` = 'ƒ\\•\—\\‰\Ž\\“\”\–\˜\‘\’\™\š\›\œ\\ž\';
73
‚b‚P
74
ƒ\\•\—\\‰\Ž\\“\”\–\˜\‘\’\™\š\›\œ\\ž\
75
CREATE TABLE t1(c1 char(1)) default charset = sjis engine=innodb;
76
CREATE TABLE t2(c1 char(1)) default charset = sjis engine=myisam;
77
CREATE TABLE t3(c1 char(1)) default charset = sjis engine=heap;
78
CREATE TABLE t4(c1 char(1)) default charset = sjis engine=bdb;
79
INSERT INTO t1 VALUES('“S'),('“s');
80
INSERT INTO t2 VALUES('“S'),('“s');
81
INSERT INTO t3 VALUES('“S'),('“s');
82
INSERT INTO t4 VALUES('“S'),('“s');
83
SELECT * FROM t1 WHERE c1 = '“S';
84
c1
85
“S
86
SELECT * FROM t2 WHERE c1 = '“S';
87
c1
88
“S
89
SELECT * FROM t3 WHERE c1 = '“S';
90
c1
91
“S
92
SELECT * FROM t4 WHERE c1 = '“S';
93
c1
94
“S
95
SELECT * FROM t1 WHERE c1 = '“s';
96
c1
97
“s
98
SELECT * FROM t2 WHERE c1 = '“s';
99
c1
100
“s
101
SELECT * FROM t3 WHERE c1 = '“s';
102
c1
103
“s
104
SELECT * FROM t4 WHERE c1 = '“s';
105
c1
106
“s
107
DROP TABLE `‚s‚P`;
108
DROP TABLE `‚s‚Q`;
109
DROP TABLE `‚s‚R`;
110
DROP TABLE `‚s‚S`;
111
DROP TABLE `‚s‚T`;
112
DROP TABLE `‚s‚U`;
113
DROP TABLE `‚s‚V`;
114
DROP TABLE `‚s‚W`;
115
DROP TABLE `‚s‚X`;
116
DROP TABLE `‚s‚P‚O`;
117
DROP TABLE `‚s‚P‚P`;
118
DROP TABLE `‚s‚P‚Q`;