2005-01-03 21:04:33 +02:00
|
|
|
drop table if exists t1;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t1 (x1 int);
|
|
|
|
ALTER TABLE t1 CHANGE x1 x2 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
2004-04-03 02:50:40 +05:00
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2004-04-06 19:17:13 +05:00
|
|
|
`xx` int(11) default NULL
|
2004-04-03 02:50:40 +05:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x2 x1 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
2004-04-03 02:50:40 +05:00
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2004-04-06 19:17:13 +05:00
|
|
|
`xx` int(11) default NULL
|
2004-04-03 02:50:40 +05:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x1 x2 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x2 x1 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x1 x2 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x2 x1 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x1 x2 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x2 x1 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x1 x2 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x2 x1 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x1 x2 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x2 x1 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x1 x2 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x2 x1 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x1 x2 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x2 x1 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x1 x2 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x2 x1 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x1 x2 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
ALTER TABLE t1 CHANGE x2 x1 int;
|
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
|
|
|
`xx` int(11) default NULL
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
|
|
DROP TABLE t2;
|
|
|
|
DROP TABLE t1;
|