mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 18:36:12 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			337 lines
		
	
	
	
		
			9.3 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			337 lines
		
	
	
	
		
			9.3 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| DROP TABLE IF EXISTS t1;
 | |
| CREATE TABLE t1(c1 BIT NULL COMMENT 'This is a BIT column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` bit(1) DEFAULT NULL COMMENT 'This is a BIT column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 TINYINT NULL COMMENT 'This is a TINYINT column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` tinyint(4) DEFAULT NULL COMMENT 'This is a TINYINT column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 SMALLINT NULL COMMENT 'This is a SMALLINT column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` smallint(6) DEFAULT NULL COMMENT 'This is a SMALLINT column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 MEDIUMINT NULL COMMENT 'This is a MEDIUMINT column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` mediumint(9) DEFAULT NULL COMMENT 'This is a MEDIUMINT column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 INT NULL COMMENT 'This is a INT column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` int(11) DEFAULT NULL COMMENT 'This is a INT column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 INTEGER NULL COMMENT 'This is a INTEGER column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` int(11) DEFAULT NULL COMMENT 'This is a INTEGER column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 BIGINT NULL COMMENT 'This is a BIGINT column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` bigint(20) DEFAULT NULL COMMENT 'This is a BIGINT column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 DECIMAL NULL COMMENT 'This is a DECIMAL column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` decimal(10,0) DEFAULT NULL COMMENT 'This is a DECIMAL column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 DEC NULL COMMENT 'This is a DEC column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` decimal(10,0) DEFAULT NULL COMMENT 'This is a DEC column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 FIXED NULL COMMENT 'This is a FIXED column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` decimal(10,0) DEFAULT NULL COMMENT 'This is a FIXED column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 NUMERIC NULL COMMENT 'This is a NUMERIC column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` decimal(10,0) DEFAULT NULL COMMENT 'This is a NUMERIC column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 DOUBLE NULL COMMENT 'This is a DOUBLE column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` double DEFAULT NULL COMMENT 'This is a DOUBLE column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 REAL NULL COMMENT 'This is a REAL column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` double DEFAULT NULL COMMENT 'This is a REAL column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 DOUBLE PRECISION NULL COMMENT 'This is a DOUBLE PRECISION column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` double DEFAULT NULL COMMENT 'This is a DOUBLE PRECISION column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 FLOAT NULL COMMENT 'This is a FLOAT column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` float DEFAULT NULL COMMENT 'This is a FLOAT column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 DATE NULL COMMENT 'This is a DATE column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` date DEFAULT NULL COMMENT 'This is a DATE column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 TIME NULL COMMENT 'This is a TIME column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` time DEFAULT NULL COMMENT 'This is a TIME column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 TIMESTAMP NULL COMMENT 'This is a TIMESTAMP column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` timestamp NULL DEFAULT NULL COMMENT 'This is a TIMESTAMP column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 DATETIME NULL COMMENT 'This is a DATETIME column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` datetime DEFAULT NULL COMMENT 'This is a DATETIME column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 YEAR NULL COMMENT 'This is a YEAR column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` year(4) DEFAULT NULL COMMENT 'This is a YEAR column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 TINYBLOB NULL COMMENT 'This is a TINYBLOB column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` tinyblob DEFAULT NULL COMMENT 'This is a TINYBLOB column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 BLOB NULL COMMENT 'This is a BLOB column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` blob DEFAULT NULL COMMENT 'This is a BLOB column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 MEDIUMBLOB NULL COMMENT 'This is a MEDIUMBLOB column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` mediumblob DEFAULT NULL COMMENT 'This is a MEDIUMBLOB column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 LONGBLOB NULL COMMENT 'This is a LONGBLOB column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` longblob DEFAULT NULL COMMENT 'This is a LONGBLOB column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 TINYTEXT NULL COMMENT 'This is a TINYTEXT column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` tinytext DEFAULT NULL COMMENT 'This is a TINYTEXT column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 TEXT NULL COMMENT 'This is a TEXT column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` text DEFAULT NULL COMMENT 'This is a TEXT column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 MEDIUMTEXT NULL COMMENT 'This is a MEDIUMTEXT column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` mediumtext DEFAULT NULL COMMENT 'This is a MEDIUMTEXT column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| CREATE TABLE t1(c1 LONGTEXT NULL COMMENT 'This is a LONGTEXT column');
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SHOW CREATE TABLE t1;
 | |
| Table	Create Table
 | |
| t1	CREATE TABLE `t1` (
 | |
|   `c1` longtext DEFAULT NULL COMMENT 'This is a LONGTEXT column'
 | |
| ) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
 | |
| DROP TABLE t1;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | 
