--source include/have_ucs2.inc

--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 SUBSTRING() function with Japanese character in ucs2 encoding
#

SET NAMES ujis;
SET character_set_database = ucs2;
SET collation_connection = ucs2_general_ci;

CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `�ԣ���` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `�ԣ���` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `�ԣ���` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = bdb;

INSERT INTO `�ԣ�` VALUES ('����������'),('��������'),('������'),('����'),('��'),('');
INSERT INTO `�ԣ�` VALUES ('����������'),('��������'),('������'),('����'),('��'),('');
INSERT INTO `�ԣ�` VALUES ('��܏�ݏ�ޏ�ߏ��'),('��܏�ݏ�ޏ��'),('��܏�ݏ��'),('��܏��'),('���'),('');
INSERT INTO `�ԣ�` VALUES ('����������'),('��������'),('������'),('����'),('��'),('');
INSERT INTO `�ԣ�` VALUES ('����������'),('��������'),('������'),('����'),('��'),('');
INSERT INTO `�ԣ�` VALUES ('��܏�ݏ�ޏ�ߏ��'),('��܏�ݏ�ޏ��'),('��܏�ݏ��'),('��܏��'),('���'),('');
INSERT INTO `�ԣ�` VALUES ('����������'),('��������'),('������'),('����'),('��'),('');
INSERT INTO `�ԣ�` VALUES ('����������'),('��������'),('������'),('����'),('��'),('');
INSERT INTO `�ԣ�` VALUES ('��܏�ݏ�ޏ�ߏ��'),('��܏�ݏ�ޏ��'),('��܏�ݏ��'),('��܏��'),('���'),('');
INSERT INTO `�ԣ���` VALUES ('����������'),('��������'),('������'),('����'),('��'),('');
INSERT INTO `�ԣ���` VALUES ('����������'),('��������'),('������'),('����'),('��'),('');
INSERT INTO `�ԣ���` VALUES ('��܏�ݏ�ޏ�ߏ��'),('��܏�ݏ�ޏ��'),('��܏�ݏ��'),('��܏��'),('���'),('');

# Test of SUBSTRING(str,pos) and SUBSTRING(str FROM pos)
# is not available until the bug #5364 is fixed

#InnoDB
#SELECT `�ã�`, SUBSTRING(`�ã�`,0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,6) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 6) FROM `�ԣ�`;

#SELECT `�ã�`, SUBSTRING(`�ã�`,0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,6) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 6) FROM `�ԣ�`;

#SELECT `�ã�`, SUBSTRING(`�ã�`,0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,6) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 6) FROM `�ԣ�`;

#MyISAM
#SELECT `�ã�`, SUBSTRING(`�ã�`,0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,6) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 6) FROM `�ԣ�`;

#SELECT `�ã�`, SUBSTRING(`�ã�`,0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,6) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 6) FROM `�ԣ�`;

#SELECT `�ã�`, SUBSTRING(`�ã�`,0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,6) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 6) FROM `�ԣ�`;

#HEAP
#SELECT `�ã�`, SUBSTRING(`�ã�`,0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,6) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 6) FROM `�ԣ�`;

#SELECT `�ã�`, SUBSTRING(`�ã�`,0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,6) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 6) FROM `�ԣ�`;

#SELECT `�ã�`, SUBSTRING(`�ã�`,0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,6) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 0) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 2) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 3) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 4) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 5) FROM `�ԣ�`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,6) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 0) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 1) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 2) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 3) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 4) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 5) FROM `�ԣ�`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 6) FROM `�ԣ�`;

#BDB
#SELECT `�ã�`, SUBSTRING(`�ã�`,0) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,1) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,2) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,3) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,4) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,5) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,6) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 0) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 2) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 3) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 4) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 5) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 6) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,0) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,1) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,2) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,3) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,4) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,5) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,6) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 0) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 1) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 2) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 3) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 4) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 5) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 6) FROM `�ԣ���`;

#SELECT `�ã�`, SUBSTRING(`�ã�`,0) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,1) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,2) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,3) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,4) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,5) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,6) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 0) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 2) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 3) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 4) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 5) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 6) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,0) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,1) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,2) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,3) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,4) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,5) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,6) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 0) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 1) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 2) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 3) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 4) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 5) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 6) FROM `�ԣ���`;

#SELECT `�ã�`, SUBSTRING(`�ã�`,0) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,1) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,2) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,3) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,4) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,5) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�`,6) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 0) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 2) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 3) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 4) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 5) FROM `�ԣ���`;
#SELECT `�ã�`, SUBSTRING(`�ã�` FROM 6) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,0) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,1) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,2) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,3) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,4) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,5) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�`,1,6) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 0) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 1) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 2) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 3) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 4) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 5) FROM `�ԣ���`;
SELECT `�ã�`, SUBSTRING(`�ã�` FROM 1 FOR 6) 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 `�ԣ���`;