966 lines
25 KiB
Plaintext
966 lines
25 KiB
Plaintext
DROP TABLE IF EXISTS t3;
|
|
CREATE TABLE t3(c1 TINYINT UNSIGNED NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` tinyint(3) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 TINYINT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` tinyint(4) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 SMALLINT UNSIGNED NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` smallint(5) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 SMALLINT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` smallint(6) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 MEDIUMINT UNSIGNED NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` mediumint(8) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 MEDIUMINT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` mediumint(9) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 INT UNSIGNED NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(10) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 INT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(11) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 INTEGER UNSIGNED NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(10) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 INTEGER NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(11) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 BIGINT UNSIGNED NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` bigint(20) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 BIGINT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` bigint(20) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 REAL UNSIGNED NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 REAL NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 DOUBLE UNSIGNED NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 DOUBLE NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 FLOAT UNSIGNED NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` float unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 FLOAT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` float DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 DECIMAL UNSIGNED NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 DECIMAL NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 NUMERIC UNSIGNED NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 NUMERIC NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 TINYINT UNSIGNED NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` tinyint(3) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 TINYINT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` tinyint(4) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 SMALLINT UNSIGNED NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` smallint(5) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 SMALLINT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` smallint(6) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 MEDIUMINT UNSIGNED NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` mediumint(8) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 MEDIUMINT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` mediumint(9) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 INT UNSIGNED NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(10) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 INT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(11) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 INTEGER UNSIGNED NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(10) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 INTEGER NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(11) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 BIGINT UNSIGNED NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` bigint(20) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 BIGINT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` bigint(20) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 REAL UNSIGNED NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 REAL NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 DOUBLE UNSIGNED NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 DOUBLE NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 FLOAT UNSIGNED NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` float unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 FLOAT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` float DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 DECIMAL UNSIGNED NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 DECIMAL NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 NUMERIC UNSIGNED NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) unsigned DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 NUMERIC NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 TINYINT UNSIGNED NOT NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` tinyint(3) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 TINYINT NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` tinyint(4) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 SMALLINT UNSIGNED NOT NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` smallint(5) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 SMALLINT NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` smallint(6) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 MEDIUMINT UNSIGNED NOT NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` mediumint(8) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 MEDIUMINT NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` mediumint(9) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 INT UNSIGNED NOT NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(10) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 INT NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(11) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 INTEGER UNSIGNED NOT NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(10) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 INTEGER NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(11) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 BIGINT UNSIGNED NOT NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` bigint(20) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 BIGINT NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` bigint(20) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 REAL UNSIGNED NOT NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 REAL NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 DOUBLE UNSIGNED NOT NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 DOUBLE NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 FLOAT UNSIGNED NOT NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` float unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 FLOAT NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` float NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 DECIMAL UNSIGNED NOT NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 DECIMAL NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 NUMERIC UNSIGNED NOT NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 MODIFY c1 NUMERIC NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 TINYINT UNSIGNED NOT NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` tinyint(3) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 TINYINT NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` tinyint(4) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 SMALLINT UNSIGNED NOT NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` smallint(5) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 SMALLINT NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` smallint(6) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 MEDIUMINT UNSIGNED NOT NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` mediumint(8) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 MEDIUMINT NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` mediumint(9) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 INT UNSIGNED NOT NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(10) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 INT NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(11) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 INTEGER UNSIGNED NOT NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(10) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 INTEGER NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` int(11) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 BIGINT UNSIGNED NOT NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` bigint(20) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 BIGINT NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` bigint(20) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 REAL UNSIGNED NOT NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 REAL NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 DOUBLE UNSIGNED NOT NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 DOUBLE NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` double NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 FLOAT UNSIGNED NOT NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` float unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 FLOAT NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` float NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 DECIMAL UNSIGNED NOT NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 DECIMAL NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
CREATE TABLE t3(c1 NUMERIC UNSIGNED NOT NULL);
|
|
Warnings:
|
|
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) unsigned NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
ALTER TABLE t3 CHANGE c1 c1 NUMERIC NOT NULL;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t3
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`c1` decimal(10,0) NOT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
|
|
DROP TABLE t3;
|
|
SHOW TABLES;
|
|
Tables_in_test
|