jp_convert_sjis.test
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:5k
源码类别:
MySQL数据库
开发平台:
Visual C++
- --character_set sjis
- SET NAMES sjis;
- SET character_set_database = sjis;
- --disable_warnings
- drop table if exists `俿侾`;
- drop table if exists `俿俀`;
- drop table if exists `俿俁`;
- drop table if exists `俿係`;
- drop table if exists `俿俆`;
- drop table if exists `俿俇`;
- drop table if exists `俿俈`;
- drop table if exists `俿俉`;
- drop table if exists `俿俋`;
- drop table if exists `俿侾侽`;
- drop table if exists `俿侾侾`;
- drop table if exists `俿侾俀`;
- --enable_warnings
- #
- # Test CONVERT() function with Japanese character in sjis encoding
- #
- CREATE TABLE `俿侾` (`俠侾` char(20), INDEX(`俠侾`)) DEFAULT CHARSET = sjis engine = innodb;
- CREATE TABLE `俿俀` (`俠侾` char(20), INDEX(`俠侾`)) DEFAULT CHARSET = sjis engine = innodb;
- CREATE TABLE `俿俁` (`俠侾` char(20), INDEX(`俠侾`)) DEFAULT CHARSET = sjis engine = innodb;
- CREATE TABLE `俿係` (`俠侾` char(20), INDEX(`俠侾`)) DEFAULT CHARSET = sjis engine = myisam;
- CREATE TABLE `俿俆` (`俠侾` char(20), INDEX(`俠侾`)) DEFAULT CHARSET = sjis engine = myisam;
- CREATE TABLE `俿俇` (`俠侾` char(20), INDEX(`俠侾`)) DEFAULT CHARSET = sjis engine = myisam;
- CREATE TABLE `俿俈` (`俠侾` char(20), INDEX(`俠侾`)) DEFAULT CHARSET = sjis engine = heap;
- CREATE TABLE `俿俉` (`俠侾` char(20), INDEX(`俠侾`)) DEFAULT CHARSET = sjis engine = heap;
- CREATE TABLE `俿俋` (`俠侾` char(20), INDEX(`俠侾`)) DEFAULT CHARSET = sjis engine = heap;
- CREATE TABLE `俿侾侽` (`俠侾` char(20), INDEX(`俠侾`)) DEFAULT CHARSET = sjis engine = bdb;
- CREATE TABLE `俿侾侾` (`俠侾` char(20), INDEX(`俠侾`)) DEFAULT CHARSET = sjis engine = bdb;
- CREATE TABLE `俿侾俀` (`俠侾` char(20), INDEX(`俠侾`)) DEFAULT CHARSET = sjis engine = bdb;
- #Load the following data in each table
- # jisx0201 hankaku-katakana data
- # jisx0208 data
- # jisx0212 supplemental character data
- LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `俿侾`;
- LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `俿俀`;
- LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `俿俁`;
- LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `俿係`;
- LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `俿俆`;
- LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `俿俇`;
- LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `俿俈`;
- LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `俿俉`;
- LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `俿俋`;
- LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `俿侾侽`;
- LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `俿侾侾`;
- LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `俿侾俀`;
- #InnoDB
- SELECT `俠侾`, CONVERT(`俠侾` using utf8) FROM `俿侾`;
- SELECT `俠侾`, CONVERT(`俠侾` using ucs2) FROM `俿侾`;
- SELECT `俠侾`, CONVERT(`俠侾` using ujis) FROM `俿侾`;
- SELECT `俠侾`, CONVERT(`俠侾` using utf8) FROM `俿俀`;
- SELECT `俠侾`, CONVERT(`俠侾` using ucs2) FROM `俿俀`;
- SELECT `俠侾`, CONVERT(`俠侾` using ujis) FROM `俿俀`;
- SELECT `俠侾`, CONVERT(`俠侾` using utf8) FROM `俿俁`;
- SELECT `俠侾`, CONVERT(`俠侾` using ucs2) FROM `俿俁`;
- SELECT `俠侾`, CONVERT(`俠侾` using ujis) FROM `俿俁`;
- #MyISAM
- SELECT `俠侾`, CONVERT(`俠侾` using utf8) FROM `俿係`;
- SELECT `俠侾`, CONVERT(`俠侾` using ucs2) FROM `俿係`;
- SELECT `俠侾`, CONVERT(`俠侾` using ujis) FROM `俿係`;
- SELECT `俠侾`, CONVERT(`俠侾` using utf8) FROM `俿俆`;
- SELECT `俠侾`, CONVERT(`俠侾` using ucs2) FROM `俿俆`;
- SELECT `俠侾`, CONVERT(`俠侾` using ujis) FROM `俿俆`;
- SELECT `俠侾`, CONVERT(`俠侾` using utf8) FROM `俿俇`;
- SELECT `俠侾`, CONVERT(`俠侾` using ucs2) FROM `俿俇`;
- SELECT `俠侾`, CONVERT(`俠侾` using ujis) FROM `俿俇`;
- #Heap
- SELECT `俠侾`, CONVERT(`俠侾` using utf8) FROM `俿俈`;
- SELECT `俠侾`, CONVERT(`俠侾` using ucs2) FROM `俿俈`;
- SELECT `俠侾`, CONVERT(`俠侾` using ujis) FROM `俿俈`;
- SELECT `俠侾`, CONVERT(`俠侾` using utf8) FROM `俿俉`;
- SELECT `俠侾`, CONVERT(`俠侾` using ucs2) FROM `俿俉`;
- SELECT `俠侾`, CONVERT(`俠侾` using ujis) FROM `俿俉`;
- SELECT `俠侾`, CONVERT(`俠侾` using utf8) FROM `俿俋`;
- SELECT `俠侾`, CONVERT(`俠侾` using ucs2) FROM `俿俋`;
- SELECT `俠侾`, CONVERT(`俠侾` using ujis) FROM `俿俋`;
- #BDB
- SELECT `俠侾`, CONVERT(`俠侾` using utf8) FROM `俿侾侽`;
- SELECT `俠侾`, CONVERT(`俠侾` using ucs2) FROM `俿侾侽`;
- SELECT `俠侾`, CONVERT(`俠侾` using ujis) FROM `俿侾侽`;
- SELECT `俠侾`, CONVERT(`俠侾` using utf8) FROM `俿侾侾`;
- SELECT `俠侾`, CONVERT(`俠侾` using ucs2) FROM `俿侾侾`;
- SELECT `俠侾`, CONVERT(`俠侾` using ujis) FROM `俿侾侾`;
- SELECT `俠侾`, CONVERT(`俠侾` using utf8) FROM `俿侾俀`;
- SELECT `俠侾`, CONVERT(`俠侾` using ucs2) FROM `俿侾俀`;
- SELECT `俠侾`, CONVERT(`俠侾` using ujis) FROM `俿侾俀`;
- drop table `俿侾`;
- drop table `俿俀`;
- drop table `俿俁`;
- drop table `俿係`;
- drop table `俿俆`;
- drop table `俿俇`;
- drop table `俿俈`;
- drop table `俿俉`;
- drop table `俿俋`;
- drop table `俿侾侽`;
- drop table `俿侾侾`;
- drop table `俿侾俀`;