mariadb/mysql-test/suite/engines/funcs/r/tc_multicolumn_same.result
2022-09-21 10:59:56 +03:00

361 lines
10 KiB
Text

DROP TABLE IF EXISTS m1;
CREATE TABLE m1(c1 BIT NULL, c2 BIT NOT NULL, c3 BIT NULL, c4 BIT NOT NULL PRIMARY KEY, c5 BIT NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` bit(1) DEFAULT NULL,
`c2` bit(1) NOT NULL,
`c3` bit(1) DEFAULT NULL,
`c4` bit(1) NOT NULL,
`c5` bit(1) NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 TINYINT NULL, c2 TINYINT NOT NULL, c3 TINYINT NULL, c4 TINYINT NOT NULL PRIMARY KEY, c5 TINYINT NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` tinyint(4) DEFAULT NULL,
`c2` tinyint(4) NOT NULL,
`c3` tinyint(4) DEFAULT NULL,
`c4` tinyint(4) NOT NULL,
`c5` tinyint(4) NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 SMALLINT NULL, c2 SMALLINT NOT NULL, c3 SMALLINT NULL, c4 SMALLINT NOT NULL PRIMARY KEY, c5 SMALLINT NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` smallint(6) DEFAULT NULL,
`c2` smallint(6) NOT NULL,
`c3` smallint(6) DEFAULT NULL,
`c4` smallint(6) NOT NULL,
`c5` smallint(6) NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 MEDIUMINT NULL, c2 MEDIUMINT NOT NULL, c3 MEDIUMINT NULL, c4 MEDIUMINT NOT NULL PRIMARY KEY, c5 MEDIUMINT NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` mediumint(9) DEFAULT NULL,
`c2` mediumint(9) NOT NULL,
`c3` mediumint(9) DEFAULT NULL,
`c4` mediumint(9) NOT NULL,
`c5` mediumint(9) NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 INT NULL, c2 INT NOT NULL, c3 INT NULL, c4 INT NOT NULL PRIMARY KEY, c5 INT NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` int(11) DEFAULT NULL,
`c2` int(11) NOT NULL,
`c3` int(11) DEFAULT NULL,
`c4` int(11) NOT NULL,
`c5` int(11) NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 INTEGER NULL, c2 INTEGER NOT NULL, c3 INTEGER NULL, c4 INTEGER NOT NULL PRIMARY KEY, c5 INTEGER NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` int(11) DEFAULT NULL,
`c2` int(11) NOT NULL,
`c3` int(11) DEFAULT NULL,
`c4` int(11) NOT NULL,
`c5` int(11) NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 BIGINT NULL, c2 BIGINT NOT NULL, c3 BIGINT NULL, c4 BIGINT NOT NULL PRIMARY KEY, c5 BIGINT NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` bigint(20) DEFAULT NULL,
`c2` bigint(20) NOT NULL,
`c3` bigint(20) DEFAULT NULL,
`c4` bigint(20) NOT NULL,
`c5` bigint(20) NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 DECIMAL NULL, c2 DECIMAL NOT NULL, c3 DECIMAL NULL, c4 DECIMAL NOT NULL PRIMARY KEY, c5 DECIMAL NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` decimal(10,0) DEFAULT NULL,
`c2` decimal(10,0) NOT NULL,
`c3` decimal(10,0) DEFAULT NULL,
`c4` decimal(10,0) NOT NULL,
`c5` decimal(10,0) NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 DEC NULL, c2 DEC NOT NULL, c3 DEC NULL, c4 DEC NOT NULL PRIMARY KEY, c5 DEC NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` decimal(10,0) DEFAULT NULL,
`c2` decimal(10,0) NOT NULL,
`c3` decimal(10,0) DEFAULT NULL,
`c4` decimal(10,0) NOT NULL,
`c5` decimal(10,0) NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 FIXED NULL, c2 FIXED NOT NULL, c3 FIXED NULL, c4 FIXED NOT NULL PRIMARY KEY, c5 FIXED NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` decimal(10,0) DEFAULT NULL,
`c2` decimal(10,0) NOT NULL,
`c3` decimal(10,0) DEFAULT NULL,
`c4` decimal(10,0) NOT NULL,
`c5` decimal(10,0) NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 NUMERIC NULL, c2 NUMERIC NOT NULL, c3 NUMERIC NULL, c4 NUMERIC NOT NULL PRIMARY KEY, c5 NUMERIC NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` decimal(10,0) DEFAULT NULL,
`c2` decimal(10,0) NOT NULL,
`c3` decimal(10,0) DEFAULT NULL,
`c4` decimal(10,0) NOT NULL,
`c5` decimal(10,0) NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 DOUBLE NULL, c2 DOUBLE NOT NULL, c3 DOUBLE NULL, c4 DOUBLE NOT NULL PRIMARY KEY, c5 DOUBLE NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` double DEFAULT NULL,
`c2` double NOT NULL,
`c3` double DEFAULT NULL,
`c4` double NOT NULL,
`c5` double NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 REAL NULL, c2 REAL NOT NULL, c3 REAL NULL, c4 REAL NOT NULL PRIMARY KEY, c5 REAL NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` double DEFAULT NULL,
`c2` double NOT NULL,
`c3` double DEFAULT NULL,
`c4` double NOT NULL,
`c5` double NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 DOUBLE PRECISION NULL, c2 DOUBLE PRECISION NOT NULL, c3 DOUBLE PRECISION NULL, c4 DOUBLE PRECISION NOT NULL PRIMARY KEY, c5 DOUBLE PRECISION NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` double DEFAULT NULL,
`c2` double NOT NULL,
`c3` double DEFAULT NULL,
`c4` double NOT NULL,
`c5` double NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 FLOAT NULL, c2 FLOAT NOT NULL, c3 FLOAT NULL, c4 FLOAT NOT NULL PRIMARY KEY, c5 FLOAT NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` float DEFAULT NULL,
`c2` float NOT NULL,
`c3` float DEFAULT NULL,
`c4` float NOT NULL,
`c5` float NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 DATE NULL, c2 DATE NOT NULL, c3 DATE NULL, c4 DATE NOT NULL PRIMARY KEY, c5 DATE NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` date DEFAULT NULL,
`c2` date NOT NULL,
`c3` date DEFAULT NULL,
`c4` date NOT NULL,
`c5` date NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 TIME NULL, c2 TIME NOT NULL, c3 TIME NULL, c4 TIME NOT NULL PRIMARY KEY, c5 TIME NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` time DEFAULT NULL,
`c2` time NOT NULL,
`c3` time DEFAULT NULL,
`c4` time NOT NULL,
`c5` time NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 TIMESTAMP NULL, c2 TIMESTAMP NOT NULL, c3 TIMESTAMP NULL, c4 TIMESTAMP NOT NULL PRIMARY KEY, c5 TIMESTAMP NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` timestamp NULL DEFAULT NULL,
`c2` timestamp NOT NULL,
`c3` timestamp NULL DEFAULT NULL,
`c4` timestamp NOT NULL,
`c5` timestamp NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 DATETIME NULL, c2 DATETIME NOT NULL, c3 DATETIME NULL, c4 DATETIME NOT NULL PRIMARY KEY, c5 DATETIME NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` datetime DEFAULT NULL,
`c2` datetime NOT NULL,
`c3` datetime DEFAULT NULL,
`c4` datetime NOT NULL,
`c5` datetime NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test
CREATE TABLE m1(c1 YEAR NULL, c2 YEAR NOT NULL, c3 YEAR NULL, c4 YEAR NOT NULL PRIMARY KEY, c5 YEAR NOT NULL UNIQUE KEY);
SHOW TABLES;
Tables_in_test
m1
SHOW CREATE TABLE m1;
Table Create Table
m1 CREATE TABLE `m1` (
`c1` year(4) DEFAULT NULL,
`c2` year(4) NOT NULL,
`c3` year(4) DEFAULT NULL,
`c4` year(4) NOT NULL,
`c5` year(4) NOT NULL,
PRIMARY KEY (`c4`),
UNIQUE KEY `c5` (`c5`)
) ENGINE=ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
DROP TABLE m1;
SHOW TABLES;
Tables_in_test