2008-05-15 18:01:13 +02:00
|
|
|
|
drop table if exists `T1a`;
|
|
|
|
|
drop table if exists `T1b`;
|
|
|
|
|
drop table if exists `T2a`;
|
|
|
|
|
drop table if exists `T2b`;
|
|
|
|
|
drop table if exists `T3a`;
|
|
|
|
|
drop table if exists `T3b`;
|
|
|
|
|
drop table if exists `T4a`;
|
|
|
|
|
drop table if exists `T4b`;
|
|
|
|
|
drop table if exists `T5a`;
|
|
|
|
|
drop table if exists `T5b`;
|
|
|
|
|
drop table if exists `T6a`;
|
|
|
|
|
drop table if exists `T6b`;
|
|
|
|
|
drop table if exists `T7a`;
|
|
|
|
|
drop table if exists `T7b`;
|
|
|
|
|
drop table if exists `T8a`;
|
|
|
|
|
drop table if exists `T8b`;
|
|
|
|
|
drop table if exists `T9a`;
|
|
|
|
|
drop table if exists `T9b`;
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SET NAMES utf8;
|
|
|
|
|
SET character_set_database = utf8;
|
2008-05-15 18:01:13 +02:00
|
|
|
|
CREATE TABLE `T1a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = InnoDB;
|
|
|
|
|
CREATE TABLE `T1b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = InnoDB;
|
|
|
|
|
CREATE TABLE `T2a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = InnoDB;
|
|
|
|
|
CREATE TABLE `T2b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = InnoDB;
|
|
|
|
|
CREATE TABLE `T3a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = InnoDB;
|
|
|
|
|
CREATE TABLE `T3b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = InnoDB;
|
|
|
|
|
CREATE TABLE `T4a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MyISAM;
|
|
|
|
|
CREATE TABLE `T4b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MyISAM;
|
|
|
|
|
CREATE TABLE `T5a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MyISAM;
|
|
|
|
|
CREATE TABLE `T5b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MyISAM;
|
|
|
|
|
CREATE TABLE `T6a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MyISAM;
|
|
|
|
|
CREATE TABLE `T6b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MyISAM;
|
|
|
|
|
CREATE TABLE `T7a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MEMORY;
|
|
|
|
|
CREATE TABLE `T7b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MEMORY;
|
|
|
|
|
CREATE TABLE `T8a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MEMORY;
|
|
|
|
|
CREATE TABLE `T8b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MEMORY;
|
|
|
|
|
CREATE TABLE `T9a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MEMORY;
|
|
|
|
|
CREATE TABLE `T9b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MEMORY;
|
2005-01-07 09:48:38 +01:00
|
|
|
|
INSERT INTO `T1a` VALUES ('ア'),('カ'),('サ');
|
|
|
|
|
INSERT INTO `T1b` VALUES ('ア');
|
|
|
|
|
INSERT INTO `T2a` VALUES ('あ'),('か'),('さ');
|
|
|
|
|
INSERT INTO `T2b` VALUES ('あ');
|
|
|
|
|
INSERT INTO `T3a` VALUES ('龔'),('龖'),('龗');
|
|
|
|
|
INSERT INTO `T3b` VALUES ('龔');
|
|
|
|
|
INSERT INTO `T4a` VALUES ('ア'),('カ'),('サ');
|
|
|
|
|
INSERT INTO `T4b` VALUES ('ア');
|
|
|
|
|
INSERT INTO `T5a` VALUES ('あ'),('か'),('さ');
|
|
|
|
|
INSERT INTO `T5b` VALUES ('あ');
|
|
|
|
|
INSERT INTO `T6a` VALUES ('龔'),('龖'),('龗');
|
|
|
|
|
INSERT INTO `T6b` VALUES ('龔');
|
|
|
|
|
INSERT INTO `T7a` VALUES ('ア'),('カ'),('サ');
|
|
|
|
|
INSERT INTO `T7b` VALUES ('ア');
|
|
|
|
|
INSERT INTO `T8a` VALUES ('あ'),('か'),('さ');
|
|
|
|
|
INSERT INTO `T8b` VALUES ('あ');
|
|
|
|
|
INSERT INTO `T9a` VALUES ('龔'),('龖'),('龗');
|
|
|
|
|
INSERT INTO `T9b` VALUES ('龔');
|
|
|
|
|
SELECT * FROM `T1a` JOIN `T1b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
カ ア
|
|
|
|
|
サ ア
|
|
|
|
|
SELECT * FROM `T1a` INNER JOIN `T1b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
カ ア
|
|
|
|
|
サ ア
|
|
|
|
|
SELECT * FROM `T1a` JOIN `T1b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
ア
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T1a` INNER JOIN `T1b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
ア
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T1a` CROSS JOIN `T1b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
カ ア
|
|
|
|
|
サ ア
|
|
|
|
|
SELECT * FROM `T1a` LEFT JOIN `T1b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
ア
|
|
|
|
|
カ
|
|
|
|
|
サ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T1a` LEFT JOIN `T1b` ON (`T1a`.`C1` = `T1b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
カ NULL
|
|
|
|
|
サ NULL
|
|
|
|
|
SELECT * FROM `T1b` RIGHT JOIN `T1a` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
ア
|
|
|
|
|
カ
|
|
|
|
|
サ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T1b` RIGHT JOIN `T1a` ON (`T1a`.`C1` = `T1b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
NULL カ
|
|
|
|
|
NULL サ
|
|
|
|
|
SELECT * FROM `T2a` JOIN `T2b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
か あ
|
|
|
|
|
さ あ
|
|
|
|
|
SELECT * FROM `T2a` INNER JOIN `T2b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
か あ
|
|
|
|
|
さ あ
|
|
|
|
|
SELECT * FROM `T2a` JOIN `T2b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
あ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T2a` INNER JOIN `T2b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
あ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T2a` CROSS JOIN `T2b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
か あ
|
|
|
|
|
さ あ
|
|
|
|
|
SELECT * FROM `T2a` LEFT JOIN `T2b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
あ
|
|
|
|
|
か
|
|
|
|
|
さ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T2a` LEFT JOIN `T2b` ON (`T2a`.`C1` = `T2b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
か NULL
|
|
|
|
|
さ NULL
|
|
|
|
|
SELECT * FROM `T2b` RIGHT JOIN `T2a` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
あ
|
|
|
|
|
か
|
|
|
|
|
さ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T2b` RIGHT JOIN `T2a` ON (`T2a`.`C1` = `T2b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
NULL か
|
|
|
|
|
NULL さ
|
|
|
|
|
SELECT * FROM `T3a` JOIN `T3b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
龖 龔
|
|
|
|
|
龗 龔
|
|
|
|
|
SELECT * FROM `T3a` INNER JOIN `T3b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
龖 龔
|
|
|
|
|
龗 龔
|
|
|
|
|
SELECT * FROM `T3a` JOIN `T3b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
龔
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T3a` INNER JOIN `T3b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
龔
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T3a` CROSS JOIN `T3b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
龖 龔
|
|
|
|
|
龗 龔
|
|
|
|
|
SELECT * FROM `T3a` LEFT JOIN `T3b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
龔
|
|
|
|
|
龖
|
|
|
|
|
龗
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T3a` LEFT JOIN `T3b` ON (`T3a`.`C1` = `T3b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
龖 NULL
|
|
|
|
|
龗 NULL
|
|
|
|
|
SELECT * FROM `T3b` RIGHT JOIN `T3a` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
龔
|
|
|
|
|
龖
|
|
|
|
|
龗
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T3b` RIGHT JOIN `T3a` ON (`T3a`.`C1` = `T3b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
NULL 龖
|
|
|
|
|
NULL 龗
|
|
|
|
|
SELECT * FROM `T4a` JOIN `T4b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
カ ア
|
|
|
|
|
サ ア
|
|
|
|
|
SELECT * FROM `T4a` INNER JOIN `T4b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
カ ア
|
|
|
|
|
サ ア
|
|
|
|
|
SELECT * FROM `T4a` JOIN `T4b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
ア
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T4a` INNER JOIN `T4b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
ア
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T4a` CROSS JOIN `T4b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
カ ア
|
|
|
|
|
サ ア
|
|
|
|
|
SELECT * FROM `T4a` LEFT JOIN `T4b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
ア
|
|
|
|
|
カ
|
|
|
|
|
サ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T4a` LEFT JOIN `T4b` ON (`T4a`.`C1` = `T4b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
カ NULL
|
|
|
|
|
サ NULL
|
|
|
|
|
SELECT * FROM `T4b` RIGHT JOIN `T4a` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
ア
|
|
|
|
|
カ
|
|
|
|
|
サ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T4b` RIGHT JOIN `T4a` ON (`T4a`.`C1` = `T4b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
NULL カ
|
|
|
|
|
NULL サ
|
|
|
|
|
SELECT * FROM `T5a` JOIN `T5b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
か あ
|
|
|
|
|
さ あ
|
|
|
|
|
SELECT * FROM `T5a` INNER JOIN `T5b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
か あ
|
|
|
|
|
さ あ
|
|
|
|
|
SELECT * FROM `T5a` JOIN `T5b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
あ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T5a` INNER JOIN `T5b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
あ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T5a` CROSS JOIN `T5b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
か あ
|
|
|
|
|
さ あ
|
|
|
|
|
SELECT * FROM `T5a` LEFT JOIN `T5b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
あ
|
|
|
|
|
か
|
|
|
|
|
さ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T5a` LEFT JOIN `T5b` ON (`T5a`.`C1` = `T5b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
か NULL
|
|
|
|
|
さ NULL
|
|
|
|
|
SELECT * FROM `T5b` RIGHT JOIN `T5a` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
あ
|
|
|
|
|
か
|
|
|
|
|
さ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T5b` RIGHT JOIN `T5a` ON (`T5a`.`C1` = `T5b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
NULL か
|
|
|
|
|
NULL さ
|
|
|
|
|
SELECT * FROM `T6a` JOIN `T6b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
龖 龔
|
|
|
|
|
龗 龔
|
|
|
|
|
SELECT * FROM `T6a` INNER JOIN `T6b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
龖 龔
|
|
|
|
|
龗 龔
|
|
|
|
|
SELECT * FROM `T6a` JOIN `T6b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
龔
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T6a` INNER JOIN `T6b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
龔
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T6a` CROSS JOIN `T6b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
龖 龔
|
|
|
|
|
龗 龔
|
|
|
|
|
SELECT * FROM `T6a` LEFT JOIN `T6b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
龔
|
|
|
|
|
龖
|
|
|
|
|
龗
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T6a` LEFT JOIN `T6b` ON (`T6a`.`C1` = `T6b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
龖 NULL
|
|
|
|
|
龗 NULL
|
|
|
|
|
SELECT * FROM `T6b` RIGHT JOIN `T6a` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
龔
|
|
|
|
|
龖
|
|
|
|
|
龗
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T6b` RIGHT JOIN `T6a` ON (`T6a`.`C1` = `T6b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
NULL 龖
|
|
|
|
|
NULL 龗
|
|
|
|
|
SELECT * FROM `T7a` JOIN `T7b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
カ ア
|
|
|
|
|
サ ア
|
|
|
|
|
SELECT * FROM `T7a` INNER JOIN `T7b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
カ ア
|
|
|
|
|
サ ア
|
|
|
|
|
SELECT * FROM `T7a` JOIN `T7b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
ア
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T7a` INNER JOIN `T7b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
ア
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T7a` CROSS JOIN `T7b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
カ ア
|
|
|
|
|
サ ア
|
|
|
|
|
SELECT * FROM `T7a` LEFT JOIN `T7b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
ア
|
|
|
|
|
カ
|
|
|
|
|
サ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T7a` LEFT JOIN `T7b` ON (`T7a`.`C1` = `T7b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
カ NULL
|
|
|
|
|
サ NULL
|
|
|
|
|
SELECT * FROM `T7b` RIGHT JOIN `T7a` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
ア
|
|
|
|
|
カ
|
|
|
|
|
サ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T7b` RIGHT JOIN `T7a` ON (`T7a`.`C1` = `T7b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
ア ア
|
|
|
|
|
NULL カ
|
|
|
|
|
NULL サ
|
|
|
|
|
SELECT * FROM `T8a` JOIN `T8b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
か あ
|
|
|
|
|
さ あ
|
|
|
|
|
SELECT * FROM `T8a` INNER JOIN `T8b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
か あ
|
|
|
|
|
さ あ
|
|
|
|
|
SELECT * FROM `T8a` JOIN `T8b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
あ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T8a` INNER JOIN `T8b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
あ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T8a` CROSS JOIN `T8b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
か あ
|
|
|
|
|
さ あ
|
|
|
|
|
SELECT * FROM `T8a` LEFT JOIN `T8b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
あ
|
|
|
|
|
か
|
|
|
|
|
さ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T8a` LEFT JOIN `T8b` ON (`T8a`.`C1` = `T8b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
か NULL
|
|
|
|
|
さ NULL
|
|
|
|
|
SELECT * FROM `T8b` RIGHT JOIN `T8a` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
あ
|
|
|
|
|
か
|
|
|
|
|
さ
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T8b` RIGHT JOIN `T8a` ON (`T8a`.`C1` = `T8b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
あ あ
|
|
|
|
|
NULL か
|
|
|
|
|
NULL さ
|
|
|
|
|
SELECT * FROM `T9a` JOIN `T9b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
龖 龔
|
|
|
|
|
龗 龔
|
|
|
|
|
SELECT * FROM `T9a` INNER JOIN `T9b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
龖 龔
|
|
|
|
|
龗 龔
|
|
|
|
|
SELECT * FROM `T9a` JOIN `T9b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
龔
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T9a` INNER JOIN `T9b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
龔
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T9a` CROSS JOIN `T9b`;
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
龖 龔
|
|
|
|
|
龗 龔
|
|
|
|
|
SELECT * FROM `T9a` LEFT JOIN `T9b` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
龔
|
|
|
|
|
龖
|
|
|
|
|
龗
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T9a` LEFT JOIN `T9b` ON (`T9a`.`C1` = `T9b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
龖 NULL
|
|
|
|
|
龗 NULL
|
|
|
|
|
SELECT * FROM `T9b` RIGHT JOIN `T9a` USING (`C1`);
|
2008-05-15 18:01:13 +02:00
|
|
|
|
C1
|
|
|
|
|
龔
|
|
|
|
|
龖
|
|
|
|
|
龗
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT * FROM `T9b` RIGHT JOIN `T9a` ON (`T9a`.`C1` = `T9b`.`C1`);
|
|
|
|
|
C1 C1
|
|
|
|
|
龔 龔
|
|
|
|
|
NULL 龖
|
|
|
|
|
NULL 龗
|
|
|
|
|
DROP TABLE `T1a`;
|
|
|
|
|
DROP TABLE `T1b`;
|
|
|
|
|
DROP TABLE `T2a`;
|
|
|
|
|
DROP TABLE `T2b`;
|
|
|
|
|
DROP TABLE `T3a`;
|
|
|
|
|
DROP TABLE `T3b`;
|
|
|
|
|
DROP TABLE `T4a`;
|
|
|
|
|
DROP TABLE `T4b`;
|
|
|
|
|
DROP TABLE `T5a`;
|
|
|
|
|
DROP TABLE `T5b`;
|
|
|
|
|
DROP TABLE `T6a`;
|
|
|
|
|
DROP TABLE `T6b`;
|
|
|
|
|
DROP TABLE `T7a`;
|
|
|
|
|
DROP TABLE `T7b`;
|
|
|
|
|
DROP TABLE `T8a`;
|
|
|
|
|
DROP TABLE `T8b`;
|
|
|
|
|
DROP TABLE `T9a`;
|
|
|
|
|
DROP TABLE `T9b`;
|