2009-02-05 21:47:23 +01:00
|
|
|
DROP TABLE IF EXISTS t1,t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connect con1,localhost,root,,;
|
|
|
|
connect con2,localhost,root,,;
|
2009-02-05 21:47:23 +01:00
|
|
|
CREATE TABLE t1 (x1 INT);
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x1 x2 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
2004-04-03 02:50:40 +05:00
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x2 x1 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
2004-04-03 02:50:40 +05:00
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x1 x2 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x2 x1 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x1 x2 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x2 x1 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x1 x2 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x2 x1 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x1 x2 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x2 x1 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x1 x2 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x2 x1 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x1 x2 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x2 x1 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x1 x2 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x2 x1 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x1 x2 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x2 x1 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x1 x2 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2009-02-05 21:47:23 +01:00
|
|
|
ALTER TABLE t1 CHANGE x2 x1 INT;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2004-04-06 19:17:13 +05:00
|
|
|
CREATE TABLE t2 LIKE t1;
|
|
|
|
SHOW CREATE TABLE t2;
|
|
|
|
Table Create Table
|
|
|
|
t2 CREATE TABLE `t2` (
|
2006-02-22 10:09:59 +01:00
|
|
|
`xx` int(11) DEFAULT NULL
|
2022-09-02 17:32:14 +04:00
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t2;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2004-04-06 19:17:13 +05:00
|
|
|
DROP TABLE t1;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection default;
|
|
|
|
disconnect con1;
|
|
|
|
disconnect con2;
|