mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
220 lines
10 KiB
Text
220 lines
10 KiB
Text
|
--source include/have_ujis.inc
|
|||
|
|
|||
|
--disable_warnings
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
--enable_warnings
|
|||
|
|
|||
|
#
|
|||
|
# Test table JOIN using Japanese characters
|
|||
|
#
|
|||
|
|
|||
|
SET NAMES ujis;
|
|||
|
SET character_set_database = ujis;
|
|||
|
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>a` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>b` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>a` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>b` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>a` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>b` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>a` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>b` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>a` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>b` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>a` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>b` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>a` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>b` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>a` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>b` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>a` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>b` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` (`<60>ã<EFBFBD>` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
|
|||
|
#insert the following data in each table
|
|||
|
# jisx0201 hankaku-katakana data
|
|||
|
# jisx0208 data
|
|||
|
# jisx0212 supplemental character data
|
|||
|
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>a` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>b` VALUES ('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>a` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>b` VALUES ('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>a` VALUES ('<27><><EFBFBD>'),('<27><><EFBFBD>'),('<27><><EFBFBD>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>b` VALUES ('<27><><EFBFBD>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>a` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>b` VALUES ('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>a` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>b` VALUES ('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>a` VALUES ('<27><><EFBFBD>'),('<27><><EFBFBD>'),('<27><><EFBFBD>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>b` VALUES ('<27><><EFBFBD>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>a` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>b` VALUES ('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>a` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>b` VALUES ('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>a` VALUES ('<27><><EFBFBD>'),('<27><><EFBFBD>'),('<27><><EFBFBD>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD>b` VALUES ('<27><><EFBFBD>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` VALUES ('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` VALUES ('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` VALUES ('<27><><EFBFBD>'),('<27><><EFBFBD>'),('<27><><EFBFBD>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` VALUES ('<27><><EFBFBD>');
|
|||
|
|
|||
|
#Test for innodb
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` CROSS JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` CROSS JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` CROSS JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
|
|||
|
#Test for myisam
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` CROSS JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` CROSS JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` CROSS JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
|
|||
|
#Test for heap
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` CROSS JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` CROSS JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` CROSS JOIN `<60>ԣ<EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD>b` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD>a` ON (`<60>ԣ<EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
|
|||
|
#Test for heap
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` CROSS JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` ON (`<60>ԣ<EFBFBD><D4A3><EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` ON (`<60>ԣ<EFBFBD><D4A3><EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` CROSS JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` ON (`<60>ԣ<EFBFBD><D4A3><EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` ON (`<60>ԣ<EFBFBD><D4A3><EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` INNER JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` CROSS JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` LEFT JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` ON (`<60>ԣ<EFBFBD><D4A3><EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` USING (`<60>ã<EFBFBD>`);
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>b` RIGHT JOIN `<60>ԣ<EFBFBD><D4A3><EFBFBD>a` ON (`<60>ԣ<EFBFBD><D4A3><EFBFBD>a`.`<60>ã<EFBFBD>` = `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`.`<60>ã<EFBFBD>`);
|
|||
|
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>a`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>b`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>a`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>b`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>a`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>b`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>a`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>b`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>a`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>b`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>a`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>b`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>a`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>b`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>a`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>b`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>a`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD>b`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>a`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>a`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>a`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>b`;
|