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;
