Current Path : /home/usr.opt/mysql57/mysql-test/suite/engines/funcs/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/engines/funcs/r/tc_structure_create_like.result |
DROP TABLE IF EXISTS src,dest; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 BIT NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` bit(1) DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 TINYINT NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` tinyint(4) DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 SMALLINT NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` smallint(6) DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 MEDIUMINT NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` mediumint(9) DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 INT NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` int(11) DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 INTEGER NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` int(11) DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 BIGINT NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` bigint(20) DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 REAL NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` double DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 DOUBLE NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` double DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 FLOAT NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` float DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 DECIMAL NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` decimal(10,0) DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 NUMERIC NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` decimal(10,0) DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 DATE NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` date DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 TIME NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` time DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 DATETIME NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` datetime DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 TIMESTAMP NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` timestamp NULL DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 YEAR NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` year(4) DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 TINYBLOB NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` tinyblob, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 BLOB NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` blob, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 MEDIUMBLOB NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` mediumblob, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 LONGBLOB NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` longblob, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 TINYTEXT NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` tinytext, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 TEXT NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` text, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 MEDIUMTEXT NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` mediumtext, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 LONGTEXT NULL, PRIMARY KEY(c1)); CREATE TABLE dst LIKE src; SHOW TABLES; Tables_in_test dst src SHOW CREATE TABLE dst; Table Create Table dst CREATE TABLE `dst` ( `c1` int(11) NOT NULL AUTO_INCREMENT, `c2` longtext, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src;