polardbxengine/mysql-test/suite/engines/funcs/r/tc_column_key_length.result

54 lines
1.2 KiB
Plaintext

DROP TABLE IF EXISTS t9;
CREATE TABLE t9(c1 CHAR(10) NOT NULL KEY);
SHOW TABLES;
Tables_in_test
t9
SHOW CREATE TABLE t9;
Table Create Table
t9 CREATE TABLE `t9` (
`c1` char(10) NOT NULL,
PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t9;
SHOW TABLES;
Tables_in_test
CREATE TABLE t9(c1 VARCHAR(10) NOT NULL KEY);
SHOW TABLES;
Tables_in_test
t9
SHOW CREATE TABLE t9;
Table Create Table
t9 CREATE TABLE `t9` (
`c1` varchar(10) NOT NULL,
PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t9;
SHOW TABLES;
Tables_in_test
CREATE TABLE t9(c1 BINARY(10) NOT NULL KEY);
SHOW TABLES;
Tables_in_test
t9
SHOW CREATE TABLE t9;
Table Create Table
t9 CREATE TABLE `t9` (
`c1` binary(10) NOT NULL,
PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t9;
SHOW TABLES;
Tables_in_test
CREATE TABLE t9(c1 VARBINARY(10) NOT NULL KEY);
SHOW TABLES;
Tables_in_test
t9
SHOW CREATE TABLE t9;
Table Create Table
t9 CREATE TABLE `t9` (
`c1` varbinary(10) NOT NULL,
PRIMARY KEY (`c1`)
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t9;
SHOW TABLES;
Tables_in_test