mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 14:32:34 +01:00
219 lines
10 KiB
Text
219 lines
10 KiB
Text
|
--character_set sjis
|
|||
|
--disable_warnings
|
|||
|
drop table if exists `<60>s<EFBFBD>P`;
|
|||
|
drop table if exists `<60>s<EFBFBD>Q`;
|
|||
|
drop table if exists `<60>s<EFBFBD>R`;
|
|||
|
drop table if exists `<60>s<EFBFBD>S`;
|
|||
|
drop table if exists `<60>s<EFBFBD>T`;
|
|||
|
drop table if exists `<60>s<EFBFBD>U`;
|
|||
|
drop table if exists `<60>s<EFBFBD>V`;
|
|||
|
drop table if exists `<60>s<EFBFBD>W`;
|
|||
|
drop table if exists `<60>s<EFBFBD>X`;
|
|||
|
drop table if exists `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
drop table if exists `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
drop table if exists `<60>s<EFBFBD>P<EFBFBD>Q`;
|
|||
|
--enable_warnings
|
|||
|
|
|||
|
#
|
|||
|
# Test table JOIN using Japanese characters in sjis encoding
|
|||
|
#
|
|||
|
|
|||
|
SET NAMES sjis;
|
|||
|
SET character_set_database = sjis;
|
|||
|
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Pa` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = innodb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Pb` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = innodb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Qa` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = innodb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Qb` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = innodb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Ra` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = innodb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Rb` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = innodb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Sa` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = myisam;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Sb` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = myisam;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Ta` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = myisam;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Tb` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = myisam;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Ua` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = myisam;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Ub` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = myisam;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Va` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Vb` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Wa` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Wb` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Xa` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Xb` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>Oa` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>Ob` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>Pa` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>Pb` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>Qa` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>Qb` (`<60>b<EFBFBD>P` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
|
|||
|
#insert the following data in each table
|
|||
|
# jisx0201 hankaku-katakana data
|
|||
|
# jisx0208 data
|
|||
|
# jisx0212 supplemental character data
|
|||
|
|
|||
|
INSERT INTO `<60>s<EFBFBD>Pa` VALUES ('<27>'),('<27>'),('<27>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Pb` VALUES ('<27>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Qa` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Qb` VALUES ('<27><>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Ra` VALUES ('<27>\'),('<27>\'),('<27>\');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Rb` VALUES ('<27>\');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Sa` VALUES ('<27>'),('<27>'),('<27>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Sb` VALUES ('<27>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Ta` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Tb` VALUES ('<27><>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Ua` VALUES ('<27>\'),('<27>\'),('<27>\');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Ub` VALUES ('<27>\');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Va` VALUES ('<27>'),('<27>'),('<27>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Vb` VALUES ('<27>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Wa` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Wb` VALUES ('<27><>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Xa` VALUES ('<27>\'),('<27>\'),('<27>\');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Xb` VALUES ('<27>\');
|
|||
|
INSERT INTO `<60>s<EFBFBD>P<EFBFBD>Oa` VALUES ('<27>'),('<27>'),('<27>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>P<EFBFBD>Ob` VALUES ('<27>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>P<EFBFBD>Pa` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>P<EFBFBD>Pb` VALUES ('<27><>');
|
|||
|
INSERT INTO `<60>s<EFBFBD>P<EFBFBD>Qa` VALUES ('<27>\'),('<27>\'),('<27>\');
|
|||
|
INSERT INTO `<60>s<EFBFBD>P<EFBFBD>Qb` VALUES ('<27>\');
|
|||
|
|
|||
|
#Test for innodb
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Pa` JOIN `<60>s<EFBFBD>Pb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Pa` INNER JOIN `<60>s<EFBFBD>Pb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Pa` JOIN `<60>s<EFBFBD>Pb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Pa` INNER JOIN `<60>s<EFBFBD>Pb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Pa` CROSS JOIN `<60>s<EFBFBD>Pb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Pa` LEFT JOIN `<60>s<EFBFBD>Pb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Pa` LEFT JOIN `<60>s<EFBFBD>Pb` ON (`<60>s<EFBFBD>Pa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Pb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Pb` RIGHT JOIN `<60>s<EFBFBD>Pa` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Pb` RIGHT JOIN `<60>s<EFBFBD>Pa` ON (`<60>s<EFBFBD>Pa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Pb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Qa` JOIN `<60>s<EFBFBD>Qb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Qa` INNER JOIN `<60>s<EFBFBD>Qb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Qa` JOIN `<60>s<EFBFBD>Qb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Qa` INNER JOIN `<60>s<EFBFBD>Qb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Qa` CROSS JOIN `<60>s<EFBFBD>Qb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Qa` LEFT JOIN `<60>s<EFBFBD>Qb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Qa` LEFT JOIN `<60>s<EFBFBD>Qb` ON (`<60>s<EFBFBD>Qa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Qb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Qb` RIGHT JOIN `<60>s<EFBFBD>Qa` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Qb` RIGHT JOIN `<60>s<EFBFBD>Qa` ON (`<60>s<EFBFBD>Qa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Qb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ra` JOIN `<60>s<EFBFBD>Rb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ra` INNER JOIN `<60>s<EFBFBD>Rb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ra` JOIN `<60>s<EFBFBD>Rb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ra` INNER JOIN `<60>s<EFBFBD>Rb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ra` CROSS JOIN `<60>s<EFBFBD>Rb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ra` LEFT JOIN `<60>s<EFBFBD>Rb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ra` LEFT JOIN `<60>s<EFBFBD>Rb` ON (`<60>s<EFBFBD>Ra`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Rb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Rb` RIGHT JOIN `<60>s<EFBFBD>Ra` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Rb` RIGHT JOIN `<60>s<EFBFBD>Ra` ON (`<60>s<EFBFBD>Ra`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Rb`.`<60>b<EFBFBD>P`);
|
|||
|
|
|||
|
#Test for myisam
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Sa` JOIN `<60>s<EFBFBD>Sb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Sa` INNER JOIN `<60>s<EFBFBD>Sb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Sa` JOIN `<60>s<EFBFBD>Sb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Sa` INNER JOIN `<60>s<EFBFBD>Sb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Sa` CROSS JOIN `<60>s<EFBFBD>Sb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Sa` LEFT JOIN `<60>s<EFBFBD>Sb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Sa` LEFT JOIN `<60>s<EFBFBD>Sb` ON (`<60>s<EFBFBD>Sa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Sb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Sb` RIGHT JOIN `<60>s<EFBFBD>Sa` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Sb` RIGHT JOIN `<60>s<EFBFBD>Sa` ON (`<60>s<EFBFBD>Sa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Sb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ta` JOIN `<60>s<EFBFBD>Tb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ta` INNER JOIN `<60>s<EFBFBD>Tb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ta` JOIN `<60>s<EFBFBD>Tb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ta` INNER JOIN `<60>s<EFBFBD>Tb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ta` CROSS JOIN `<60>s<EFBFBD>Tb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ta` LEFT JOIN `<60>s<EFBFBD>Tb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ta` LEFT JOIN `<60>s<EFBFBD>Tb` ON (`<60>s<EFBFBD>Ta`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Tb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Tb` RIGHT JOIN `<60>s<EFBFBD>Ta` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Tb` RIGHT JOIN `<60>s<EFBFBD>Ta` ON (`<60>s<EFBFBD>Ta`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Tb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ua` JOIN `<60>s<EFBFBD>Ub`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ua` INNER JOIN `<60>s<EFBFBD>Ub`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ua` JOIN `<60>s<EFBFBD>Ub` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ua` INNER JOIN `<60>s<EFBFBD>Ub` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ua` CROSS JOIN `<60>s<EFBFBD>Ub`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ua` LEFT JOIN `<60>s<EFBFBD>Ub` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ua` LEFT JOIN `<60>s<EFBFBD>Ub` ON (`<60>s<EFBFBD>Ua`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Ub`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ub` RIGHT JOIN `<60>s<EFBFBD>Ua` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Ub` RIGHT JOIN `<60>s<EFBFBD>Ua` ON (`<60>s<EFBFBD>Ua`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Ub`.`<60>b<EFBFBD>P`);
|
|||
|
|
|||
|
#Test for heap
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Va` JOIN `<60>s<EFBFBD>Vb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Va` INNER JOIN `<60>s<EFBFBD>Vb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Va` JOIN `<60>s<EFBFBD>Vb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Va` INNER JOIN `<60>s<EFBFBD>Vb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Va` CROSS JOIN `<60>s<EFBFBD>Vb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Va` LEFT JOIN `<60>s<EFBFBD>Vb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Va` LEFT JOIN `<60>s<EFBFBD>Vb` ON (`<60>s<EFBFBD>Va`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Vb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Vb` RIGHT JOIN `<60>s<EFBFBD>Va` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Vb` RIGHT JOIN `<60>s<EFBFBD>Va` ON (`<60>s<EFBFBD>Va`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Vb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Wa` JOIN `<60>s<EFBFBD>Wb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Wa` INNER JOIN `<60>s<EFBFBD>Wb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Wa` JOIN `<60>s<EFBFBD>Wb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Wa` INNER JOIN `<60>s<EFBFBD>Wb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Wa` CROSS JOIN `<60>s<EFBFBD>Wb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Wa` LEFT JOIN `<60>s<EFBFBD>Wb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Wa` LEFT JOIN `<60>s<EFBFBD>Wb` ON (`<60>s<EFBFBD>Wa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Wb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Wb` RIGHT JOIN `<60>s<EFBFBD>Wa` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Wb` RIGHT JOIN `<60>s<EFBFBD>Wa` ON (`<60>s<EFBFBD>Wa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Wb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Xa` JOIN `<60>s<EFBFBD>Xb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Xa` INNER JOIN `<60>s<EFBFBD>Xb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Xa` JOIN `<60>s<EFBFBD>Xb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Xa` INNER JOIN `<60>s<EFBFBD>Xb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Xa` CROSS JOIN `<60>s<EFBFBD>Xb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Xa` LEFT JOIN `<60>s<EFBFBD>Xb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Xa` LEFT JOIN `<60>s<EFBFBD>Xb` ON (`<60>s<EFBFBD>Xa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Xb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Xb` RIGHT JOIN `<60>s<EFBFBD>Xa` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>Xb` RIGHT JOIN `<60>s<EFBFBD>Xa` ON (`<60>s<EFBFBD>Xa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>Xb`.`<60>b<EFBFBD>P`);
|
|||
|
|
|||
|
#Test for heap
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Oa` JOIN `<60>s<EFBFBD>P<EFBFBD>Ob`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Oa` INNER JOIN `<60>s<EFBFBD>P<EFBFBD>Ob`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Oa` JOIN `<60>s<EFBFBD>P<EFBFBD>Ob` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Oa` INNER JOIN `<60>s<EFBFBD>P<EFBFBD>Ob` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Oa` CROSS JOIN `<60>s<EFBFBD>P<EFBFBD>Ob`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Oa` LEFT JOIN `<60>s<EFBFBD>P<EFBFBD>Ob` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Oa` LEFT JOIN `<60>s<EFBFBD>P<EFBFBD>Ob` ON (`<60>s<EFBFBD>P<EFBFBD>Oa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>P<EFBFBD>Ob`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Ob` RIGHT JOIN `<60>s<EFBFBD>P<EFBFBD>Oa` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Ob` RIGHT JOIN `<60>s<EFBFBD>P<EFBFBD>Oa` ON (`<60>s<EFBFBD>P<EFBFBD>Oa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>P<EFBFBD>Ob`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Pa` JOIN `<60>s<EFBFBD>P<EFBFBD>Pb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Pa` INNER JOIN `<60>s<EFBFBD>P<EFBFBD>Pb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Pa` JOIN `<60>s<EFBFBD>P<EFBFBD>Pb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Pa` INNER JOIN `<60>s<EFBFBD>P<EFBFBD>Pb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Pa` CROSS JOIN `<60>s<EFBFBD>P<EFBFBD>Pb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Pa` LEFT JOIN `<60>s<EFBFBD>P<EFBFBD>Pb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Pa` LEFT JOIN `<60>s<EFBFBD>P<EFBFBD>Pb` ON (`<60>s<EFBFBD>P<EFBFBD>Pa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>P<EFBFBD>Pb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Pb` RIGHT JOIN `<60>s<EFBFBD>P<EFBFBD>Pa` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Pb` RIGHT JOIN `<60>s<EFBFBD>P<EFBFBD>Pa` ON (`<60>s<EFBFBD>P<EFBFBD>Pa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>P<EFBFBD>Pb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Qa` JOIN `<60>s<EFBFBD>P<EFBFBD>Qb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Qa` INNER JOIN `<60>s<EFBFBD>P<EFBFBD>Qb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Qa` JOIN `<60>s<EFBFBD>P<EFBFBD>Qb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Qa` INNER JOIN `<60>s<EFBFBD>P<EFBFBD>Qb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Qa` CROSS JOIN `<60>s<EFBFBD>P<EFBFBD>Qb`;
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Qa` LEFT JOIN `<60>s<EFBFBD>P<EFBFBD>Qb` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Qa` LEFT JOIN `<60>s<EFBFBD>P<EFBFBD>Qb` ON (`<60>s<EFBFBD>P<EFBFBD>Qa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>P<EFBFBD>Qb`.`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Qb` RIGHT JOIN `<60>s<EFBFBD>P<EFBFBD>Qa` USING (`<60>b<EFBFBD>P`);
|
|||
|
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>Qb` RIGHT JOIN `<60>s<EFBFBD>P<EFBFBD>Qa` ON (`<60>s<EFBFBD>P<EFBFBD>Qa`.`<60>b<EFBFBD>P` = `<60>s<EFBFBD>P<EFBFBD>Qb`.`<60>b<EFBFBD>P`);
|
|||
|
|
|||
|
DROP TABLE `<60>s<EFBFBD>Pa`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Pb`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Qa`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Qb`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Ra`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Rb`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Sa`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Sb`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Ta`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Tb`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Ua`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Ub`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Va`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Vb`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Wa`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Wb`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Xa`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>Xb`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>P<EFBFBD>Oa`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>P<EFBFBD>Ob`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>P<EFBFBD>Pa`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>P<EFBFBD>Pb`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>P<EFBFBD>Qa`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>P<EFBFBD>Qb`;
|