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_string.result |
DROP TABLE IF EXISTS src,dest; CREATE TABLE src (c1 INT NOT NULL AUTO_INCREMENT, c2 CHAR(10) 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` char(10) 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 VARCHAR(10) 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` varchar(10) 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 BINARY(10) 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` binary(10) 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 VARBINARY(10) 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` varbinary(10) DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=ENGINE DEFAULT CHARSET=latin1 DROP TABLE dst; SHOW TABLES; Tables_in_test src DROP TABLE src;