jp_join_ucs2.test
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:10k
- --source include/have_ucs2.inc
- --disable_warnings
- drop table if exists `T1`;
- drop table if exists `T2`;
- drop table if exists `T3`;
- drop table if exists `T4`;
- drop table if exists `T5`;
- drop table if exists `T6`;
- drop table if exists `T7`;
- drop table if exists `T8`;
- drop table if exists `T9`;
- drop table if exists `T10`;
- drop table if exists `T11`;
- drop table if exists `T12`;
- --enable_warnings
- #
- # Test table JOIN using Japanese characters
- #
- SET NAMES ujis;
- SET character_set_database = ucs2;
- SET collation_connection = ucs2_general_ci;
- CREATE TABLE `T1a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T1b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T2a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T2b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T3a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T3b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T4a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T4b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T5a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T5b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T6a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T6b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T7a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T7b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T8a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T8b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T9a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T9b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T10a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T10b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T11a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T11b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T12a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- CREATE TABLE `T12b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
- #insert the following data in each table
- # jisx0201 hankaku-katakana data
- # jisx0208 data
- # jisx0212 supplemental character data
- INSERT INTO `T1a` VALUES ('幈'),('幎'),('幓');
- INSERT INTO `T1b` VALUES ('幈');
- INSERT INTO `T2a` VALUES ('あ'),('か'),('さ');
- INSERT INTO `T2b` VALUES ('あ');
- INSERT INTO `T3a` VALUES ('忢