mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
f5692f21f9
the InnoDB Plugin tests are now in mysql-test/suite/innodb_plugin. Move InnoDB tests to the innodb suite at mysql-test/suite/innodb.
30 lines
654 B
Text
30 lines
654 B
Text
drop table if exists t1;
|
|
SET @@SESSION.AUTO_INCREMENT_INCREMENT=1, @@SESSION.AUTO_INCREMENT_OFFSET=1;
|
|
CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (null);
|
|
INSERT INTO t1 VALUES (null);
|
|
ALTER TABLE t1 CHANGE c1 d1 INT NOT NULL AUTO_INCREMENT;
|
|
SELECT * FROM t1;
|
|
d1
|
|
1
|
|
2
|
|
SELECT * FROM t1;
|
|
d1
|
|
1
|
|
2
|
|
INSERT INTO t1 VALUES(null);
|
|
ALTER TABLE t1 AUTO_INCREMENT = 3;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`d1` int(11) NOT NULL AUTO_INCREMENT,
|
|
PRIMARY KEY (`d1`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1
|
|
INSERT INTO t1 VALUES(null);
|
|
SELECT * FROM t1;
|
|
d1
|
|
1
|
|
2
|
|
3
|
|
4
|
|
DROP TABLE t1;
|