jp_charset_sjis.test
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:6k
源码类别:
MySQL数据库
开发平台:
Visual C++
- --character_set 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 CHARSET() function with Japanese characters in sjis encoding
- #
- SET NAMES sjis;
- SET character_set_database = sjis;
- CREATE TABLE `俿侾` (`俠侾` char(20)) DEFAULT CHARSET = sjis engine = innodb;
- CREATE TABLE `俿俀` (`俠侾` char(20)) DEFAULT CHARSET = sjis engine = innodb;
- CREATE TABLE `俿俁` (`俠侾` char(20)) DEFAULT CHARSET = sjis engine = innodb;
- CREATE TABLE `俿係` (`俠侾` char(20)) DEFAULT CHARSET = sjis engine = myisam;
- CREATE TABLE `俿俆` (`俠侾` char(20)) DEFAULT CHARSET = sjis engine = myisam;
- CREATE TABLE `俿俇` (`俠侾` char(20)) DEFAULT CHARSET = sjis engine = myisam;
- CREATE TABLE `俿俈` (`俠侾` char(20)) DEFAULT CHARSET = sjis engine = heap;
- CREATE TABLE `俿俉` (`俠侾` char(20)) DEFAULT CHARSET = sjis engine = heap;
- CREATE TABLE `俿俋` (`俠侾` char(20)) DEFAULT CHARSET = sjis engine = heap;
- CREATE TABLE `俿侾侽` (`俠侾` char(20)) DEFAULT CHARSET = sjis engine = bdb;
- CREATE TABLE `俿侾侾` (`俠侾` char(20)) DEFAULT CHARSET = sjis engine = bdb;
- CREATE TABLE `俿侾俀` (`俠侾` char(20)) DEFAULT CHARSET = sjis engine = bdb;
- #Load the following data in each table
- # jisx0201 hankaku-katakana data
- # jisx0208 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 DISTINCT CHARSET(`俠侾`) FROM `俿侾`;
- SELECT DISTINCT CHARSET(`俠侾`) FROM `俿俀`;
- SELECT DISTINCT CHARSET(`俠侾`) FROM `俿俁`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING utf8)) FROM `俿侾`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ucs2)) FROM `俿侾`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING sjis)) FROM `俿侾`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ujis)) FROM `俿侾`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING utf8)) FROM `俿俀`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ucs2)) FROM `俿俀`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING sjis)) FROM `俿俀`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ujis)) FROM `俿俀`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING utf8)) FROM `俿俁`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ucs2)) FROM `俿俁`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING sjis)) FROM `俿俁`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ujis)) FROM `俿俁`;
- #MyISAM
- SELECT DISTINCT CHARSET(`俠侾`) FROM `俿係`;
- SELECT DISTINCT CHARSET(`俠侾`) FROM `俿俆`;
- SELECT DISTINCT CHARSET(`俠侾`) FROM `俿俇`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING utf8)) FROM `俿係`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ucs2)) FROM `俿係`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING sjis)) FROM `俿係`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ujis)) FROM `俿係`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING utf8)) FROM `俿俆`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ucs2)) FROM `俿俆`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING sjis)) FROM `俿俆`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ujis)) FROM `俿俆`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING utf8)) FROM `俿俇`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ucs2)) FROM `俿俇`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING sjis)) FROM `俿俇`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ujis)) FROM `俿俇`;
- #Heap
- SELECT DISTINCT CHARSET(`俠侾`) FROM `俿俈`;
- SELECT DISTINCT CHARSET(`俠侾`) FROM `俿俉`;
- SELECT DISTINCT CHARSET(`俠侾`) FROM `俿俋`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING utf8)) FROM `俿俈`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ucs2)) FROM `俿俈`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING sjis)) FROM `俿俈`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ujis)) FROM `俿俈`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING utf8)) FROM `俿俉`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ucs2)) FROM `俿俉`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING sjis)) FROM `俿俉`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ujis)) FROM `俿俉`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING utf8)) FROM `俿俋`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ucs2)) FROM `俿俋`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING sjis)) FROM `俿俋`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ujis)) FROM `俿俋`;
- #BDB
- SELECT DISTINCT CHARSET(`俠侾`) FROM `俿侾侽`;
- SELECT DISTINCT CHARSET(`俠侾`) FROM `俿侾侾`;
- SELECT DISTINCT CHARSET(`俠侾`) FROM `俿侾俀`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING utf8)) FROM `俿侾侽`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ucs2)) FROM `俿侾侽`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING sjis)) FROM `俿侾侽`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ujis)) FROM `俿侾侽`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING utf8)) FROM `俿侾侾`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ucs2)) FROM `俿侾侾`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING sjis)) FROM `俿侾侾`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ujis)) FROM `俿侾侾`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING utf8)) FROM `俿侾俀`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING ucs2)) FROM `俿侾俀`;
- SELECT DISTINCT CHARSET(CONVERT(`俠侾` USING sjis)) FROM `俿侾俀`;
- SELECT DISTINCT CHARSET(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 `俿侾俀`;