mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
DROP TABLE IF EXISTS t1;
|
|
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> DEFAULT CHARACTER SET = utf8
|
|
COLLATE = utf8_general_ci
|
|
COMMENT = 'standard table options'
|
|
;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`a` int(11) DEFAULT NULL,
|
|
`b` char(8) DEFAULT NULL
|
|
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=utf8 COMMENT='standard table options'
|
|
ALTER TABLE t1 COMMENT = 'table altered';
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`a` int(11) DEFAULT NULL,
|
|
`b` char(8) DEFAULT NULL
|
|
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=utf8 COMMENT='table altered'
|
|
ALTER TABLE t1 ENGINE=MEMORY;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`a` int(11) DEFAULT NULL,
|
|
`b` char(8) DEFAULT NULL
|
|
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COMMENT='table altered'
|
|
ALTER TABLE t1 ENGINE=<STORAGE_ENGINE>;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`a` int(11) DEFAULT NULL,
|
|
`b` char(8) DEFAULT NULL
|
|
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=utf8 COMMENT='table altered'
|
|
ALTER TABLE t1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`a` int(11) DEFAULT NULL,
|
|
`b` char(8) CHARACTER SET utf8 DEFAULT NULL
|
|
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 COMMENT='table altered'
|
|
DROP TABLE t1;
|