mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
464c2de70a
Bug#28563 Test suite "jp" fails completely - The main goal of this fix is to make the "jp" suite runnable in general and to make it more robust for use in pushbuild under build team conditions. - It was decided to fix the remaining heavy issues within the architecture of this test later (-> WL 4327 Redesign the 'jp' testsuite for build team testing conditions) Only the test jp_trim_sjis got some significant improvements of its architecture (Just as proof of concept for the other tests). - Tests suffering from Bug 36597 Testsuite "jp": Suspicious results for some tests (unexpected result sets) were disabled - *.opt files were used to avoid differences on OS (Windows) because of case sensitive tablenames within the tests
494 lines
18 KiB
Text
494 lines
18 KiB
Text
DROP TABLE IF EXISTS `アアア`;
|
|
DROP TABLE IF EXISTS `イイイ`;
|
|
DROP TABLE IF EXISTS `あああ`;
|
|
DROP TABLE IF EXISTS `いいい`;
|
|
DROP TABLE IF EXISTS `龖龖龖`;
|
|
DROP TABLE IF EXISTS `龗龗龗`;
|
|
SET NAMES utf8;
|
|
SET character_set_database = utf8;
|
|
CREATE TABLE `アアア`(`キキキ` char(5)) DEFAULT CHARSET = utf8 engine=INNODB;
|
|
CREATE TABLE `イイイ`(`ケケケ` char(5)) DEFAULT CHARSET = utf8 engine=INNODB;
|
|
CREATE TABLE `あああ`(`ききき` char(5)) DEFAULT CHARSET = utf8 engine=INNODB;
|
|
CREATE TABLE `いいい`(`けけけ` char(5)) DEFAULT CHARSET = utf8 engine=INNODB;
|
|
CREATE TABLE `龖龖龖`(`丂丂丂` char(5)) DEFAULT CHARSET = utf8 engine=INNODB;
|
|
CREATE TABLE `龗龗龗`(`乚乚乚` char(5)) DEFAULT CHARSET = utf8 engine=INNODB;
|
|
INSERT INTO `アアア` VALUES ('アアアアア'),('イイイイイ'),('ウウウウウ');
|
|
INSERT INTO `あああ` VALUES ('あああああ'),('いいいいい'),('ううううう');
|
|
INSERT INTO `龖龖龖` VALUES ('丂丂丂丂丂'),('丄丄丄丄丄'),('丅丅丅丅丅');
|
|
ALTER TABLE `アアア` ADD `カカカ` char(1) FIRST;
|
|
ALTER TABLE `アアア` ADD `ククク` char(1) AFTER `キキキ`;
|
|
ALTER TABLE `アアア` ADD `ケケケ` char(1);
|
|
ALTER TABLE `アアア` ADD INDEX (`カカカ`);
|
|
ALTER TABLE `アアア` ADD PRIMARY KEY (`キキキ`);
|
|
ALTER TABLE `アアア` ADD UNIQUE (`ククク`);
|
|
ALTER TABLE `アアア` CHANGE `カカカ` `カカ` char(1);
|
|
ALTER TABLE `アアア` MODIFY `キキキ` char(6);
|
|
SELECT * FROM `アアア`;
|
|
カカ キキキ ククク ケケケ
|
|
NULL アアアアア NULL NULL
|
|
NULL イイイイイ NULL NULL
|
|
NULL ウウウウウ NULL NULL
|
|
DESC `アアア`;
|
|
Field Type Null Key Default Extra
|
|
カカ char(1) YES MUL NULL
|
|
キキキ char(6) NO PRI
|
|
ククク char(1) YES UNI NULL
|
|
ケケケ char(1) YES NULL
|
|
SHOW CREATE TABLE `アアア`;
|
|
Table Create Table
|
|
アアア CREATE TABLE `アアア` (
|
|
`カカ` char(1) DEFAULT NULL,
|
|
`キキキ` char(6) NOT NULL DEFAULT '',
|
|
`ククク` char(1) DEFAULT NULL,
|
|
`ケケケ` char(1) DEFAULT NULL,
|
|
PRIMARY KEY (`キキキ`),
|
|
UNIQUE KEY `ククク` (`ククク`),
|
|
KEY `カカカ` (`カカ`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8
|
|
ALTER TABLE `アアア` DROP INDEX `カカカ`;
|
|
ALTER TABLE `アアア` DROP PRIMARY KEY;
|
|
ALTER TABLE `アアア` DROP INDEX `ククク`;
|
|
ALTER TABLE `アアア` DROP `カカ`;
|
|
ALTER TABLE `アアア` DROP `ククク`;
|
|
ALTER TABLE `アアア` DROP `ケケケ`;
|
|
SELECT * FROM `アアア`;
|
|
キキキ
|
|
アアアアア
|
|
イイイイイ
|
|
ウウウウウ
|
|
DESC `アアア`;
|
|
Field Type Null Key Default Extra
|
|
キキキ char(6) NO
|
|
SHOW CREATE TABLE `アアア`;
|
|
Table Create Table
|
|
アアア CREATE TABLE `アアア` (
|
|
`キキキ` char(6) NOT NULL DEFAULT ''
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8
|
|
ALTER TABLE `あああ` ADD `かかか` char(1) FIRST;
|
|
ALTER TABLE `あああ` ADD `くくく` char(1) AFTER `ききき`;
|
|
ALTER TABLE `あああ` ADD `けけけ` char(1);
|
|
ALTER TABLE `あああ` ADD INDEX (`かかか`);
|
|
ALTER TABLE `あああ` ADD PRIMARY KEY (`ききき`);
|
|
ALTER TABLE `あああ` ADD UNIQUE (`くくく`);
|
|
ALTER TABLE `あああ` CHANGE `かかか` `かか` char(1);
|
|
ALTER TABLE `あああ` MODIFY `ききき` char(6);
|
|
SELECT * FROM `あああ`;
|
|
かか ききき くくく けけけ
|
|
NULL あああああ NULL NULL
|
|
NULL いいいいい NULL NULL
|
|
NULL ううううう NULL NULL
|
|
DESC `あああ`;
|
|
Field Type Null Key Default Extra
|
|
かか char(1) YES MUL NULL
|
|
ききき char(6) NO PRI
|
|
くくく char(1) YES UNI NULL
|
|
けけけ char(1) YES NULL
|
|
SHOW CREATE TABLE `あああ`;
|
|
Table Create Table
|
|
あああ CREATE TABLE `あああ` (
|
|
`かか` char(1) DEFAULT NULL,
|
|
`ききき` char(6) NOT NULL DEFAULT '',
|
|
`くくく` char(1) DEFAULT NULL,
|
|
`けけけ` char(1) DEFAULT NULL,
|
|
PRIMARY KEY (`ききき`),
|
|
UNIQUE KEY `くくく` (`くくく`),
|
|
KEY `かかか` (`かか`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8
|
|
ALTER TABLE `あああ` DROP INDEX `かかか`;
|
|
ALTER TABLE `あああ` DROP PRIMARY KEY;
|
|
ALTER TABLE `あああ` DROP INDEX `くくく`;
|
|
ALTER TABLE `あああ` DROP `かか`;
|
|
ALTER TABLE `あああ` DROP `くくく`;
|
|
ALTER TABLE `あああ` DROP `けけけ`;
|
|
SELECT * FROM `あああ`;
|
|
ききき
|
|
あああああ
|
|
いいいいい
|
|
ううううう
|
|
DESC `あああ`;
|
|
Field Type Null Key Default Extra
|
|
ききき char(6) NO
|
|
SHOW CREATE TABLE `あああ`;
|
|
Table Create Table
|
|
あああ CREATE TABLE `あああ` (
|
|
`ききき` char(6) NOT NULL DEFAULT ''
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8
|
|
ALTER TABLE `龖龖龖` ADD `丄丄丄` char(1) FIRST;
|
|
ALTER TABLE `龖龖龖` ADD `丅丅丅` char(1) AFTER `丂丂丂`;
|
|
ALTER TABLE `龖龖龖` ADD `乚乚乚` char(1);
|
|
ALTER TABLE `龖龖龖` ADD INDEX (`丄丄丄`);
|
|
ALTER TABLE `龖龖龖` ADD PRIMARY KEY (`丂丂丂`);
|
|
ALTER TABLE `龖龖龖` ADD UNIQUE (`丅丅丅`);
|
|
ALTER TABLE `龖龖龖` CHANGE `丄丄丄` `丄丄` char(1);
|
|
ALTER TABLE `龖龖龖` MODIFY `丂丂丂` char(6);
|
|
SELECT * FROM `龖龖龖`;
|
|
丄丄 丂丂丂 丅丅丅 乚乚乚
|
|
NULL 丂丂丂丂丂 NULL NULL
|
|
NULL 丄丄丄丄丄 NULL NULL
|
|
NULL 丅丅丅丅丅 NULL NULL
|
|
DESC `龖龖龖`;
|
|
Field Type Null Key Default Extra
|
|
丄丄 char(1) YES MUL NULL
|
|
丂丂丂 char(6) NO PRI
|
|
丅丅丅 char(1) YES UNI NULL
|
|
乚乚乚 char(1) YES NULL
|
|
SHOW CREATE TABLE `龖龖龖`;
|
|
Table Create Table
|
|
龖龖龖 CREATE TABLE `龖龖龖` (
|
|
`丄丄` char(1) DEFAULT NULL,
|
|
`丂丂丂` char(6) NOT NULL DEFAULT '',
|
|
`丅丅丅` char(1) DEFAULT NULL,
|
|
`乚乚乚` char(1) DEFAULT NULL,
|
|
PRIMARY KEY (`丂丂丂`),
|
|
UNIQUE KEY `丅丅丅` (`丅丅丅`),
|
|
KEY `丄丄丄` (`丄丄`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8
|
|
ALTER TABLE `龖龖龖` DROP INDEX `丄丄丄`;
|
|
ALTER TABLE `龖龖龖` DROP PRIMARY KEY;
|
|
ALTER TABLE `龖龖龖` DROP INDEX `丅丅丅`;
|
|
ALTER TABLE `龖龖龖` DROP `丄丄`;
|
|
ALTER TABLE `龖龖龖` DROP `丅丅丅`;
|
|
ALTER TABLE `龖龖龖` DROP `乚乚乚`;
|
|
SELECT * FROM `龖龖龖`;
|
|
丂丂丂
|
|
丂丂丂丂丂
|
|
丄丄丄丄丄
|
|
丅丅丅丅丅
|
|
DESC `龖龖龖`;
|
|
Field Type Null Key Default Extra
|
|
丂丂丂 char(6) NO
|
|
SHOW CREATE TABLE `龖龖龖`;
|
|
Table Create Table
|
|
龖龖龖 CREATE TABLE `龖龖龖` (
|
|
`丂丂丂` char(6) NOT NULL DEFAULT ''
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8
|
|
DROP TABLE `アアア`;
|
|
DROP TABLE `イイイ`;
|
|
DROP TABLE `あああ`;
|
|
DROP TABLE `いいい`;
|
|
DROP TABLE `龖龖龖`;
|
|
DROP TABLE `龗龗龗`;
|
|
CREATE TABLE `アアア`(`キキキ` char(5)) DEFAULT CHARSET = utf8 engine=MYISAM;
|
|
CREATE TABLE `イイイ`(`ケケケ` char(5)) DEFAULT CHARSET = utf8 engine=MYISAM;
|
|
CREATE TABLE `あああ`(`ききき` char(5)) DEFAULT CHARSET = utf8 engine=MYISAM;
|
|
CREATE TABLE `いいい`(`けけけ` char(5)) DEFAULT CHARSET = utf8 engine=MYISAM;
|
|
CREATE TABLE `龖龖龖`(`丂丂丂` char(5)) DEFAULT CHARSET = utf8 engine=MYISAM;
|
|
CREATE TABLE `龗龗龗`(`乚乚乚` char(5)) DEFAULT CHARSET = utf8 engine=MYISAM;
|
|
INSERT INTO `アアア` VALUES ('アアアアア'),('イイイイイ'),('ウウウウウ');
|
|
INSERT INTO `あああ` VALUES ('あああああ'),('いいいいい'),('ううううう');
|
|
INSERT INTO `龖龖龖` VALUES ('丂丂丂丂丂'),('丄丄丄丄丄'),('丅丅丅丅丅');
|
|
ALTER TABLE `アアア` ADD `カカカ` char(1) FIRST;
|
|
ALTER TABLE `アアア` ADD `ククク` char(1) AFTER `キキキ`;
|
|
ALTER TABLE `アアア` ADD `ケケケ` char(1);
|
|
ALTER TABLE `アアア` ADD INDEX (`カカカ`);
|
|
ALTER TABLE `アアア` ADD PRIMARY KEY (`キキキ`);
|
|
ALTER TABLE `アアア` ADD UNIQUE (`ククク`);
|
|
ALTER TABLE `アアア` CHANGE `カカカ` `カカ` char(1);
|
|
ALTER TABLE `アアア` MODIFY `キキキ` char(6);
|
|
SELECT * FROM `アアア`;
|
|
カカ キキキ ククク ケケケ
|
|
NULL アアアアア NULL NULL
|
|
NULL イイイイイ NULL NULL
|
|
NULL ウウウウウ NULL NULL
|
|
DESC `アアア`;
|
|
Field Type Null Key Default Extra
|
|
カカ char(1) YES MUL NULL
|
|
キキキ char(6) NO PRI
|
|
ククク char(1) YES UNI NULL
|
|
ケケケ char(1) YES NULL
|
|
SHOW CREATE TABLE `アアア`;
|
|
Table Create Table
|
|
アアア CREATE TABLE `アアア` (
|
|
`カカ` char(1) DEFAULT NULL,
|
|
`キキキ` char(6) NOT NULL DEFAULT '',
|
|
`ククク` char(1) DEFAULT NULL,
|
|
`ケケケ` char(1) DEFAULT NULL,
|
|
PRIMARY KEY (`キキキ`),
|
|
UNIQUE KEY `ククク` (`ククク`),
|
|
KEY `カカカ` (`カカ`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
|
ALTER TABLE `アアア` DROP INDEX `カカカ`;
|
|
ALTER TABLE `アアア` DROP PRIMARY KEY;
|
|
ALTER TABLE `アアア` DROP INDEX `ククク`;
|
|
ALTER TABLE `アアア` DROP `カカ`;
|
|
ALTER TABLE `アアア` DROP `ククク`;
|
|
ALTER TABLE `アアア` DROP `ケケケ`;
|
|
SELECT * FROM `アアア`;
|
|
キキキ
|
|
アアアアア
|
|
イイイイイ
|
|
ウウウウウ
|
|
DESC `アアア`;
|
|
Field Type Null Key Default Extra
|
|
キキキ char(6) NO
|
|
SHOW CREATE TABLE `アアア`;
|
|
Table Create Table
|
|
アアア CREATE TABLE `アアア` (
|
|
`キキキ` char(6) NOT NULL DEFAULT ''
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
|
ALTER TABLE `あああ` ADD `かかか` char(1) FIRST;
|
|
ALTER TABLE `あああ` ADD `くくく` char(1) AFTER `ききき`;
|
|
ALTER TABLE `あああ` ADD `けけけ` char(1);
|
|
ALTER TABLE `あああ` ADD INDEX (`かかか`);
|
|
ALTER TABLE `あああ` ADD PRIMARY KEY (`ききき`);
|
|
ALTER TABLE `あああ` ADD UNIQUE (`くくく`);
|
|
ALTER TABLE `あああ` CHANGE `かかか` `かか` char(1);
|
|
ALTER TABLE `あああ` MODIFY `ききき` char(6);
|
|
SELECT * FROM `あああ`;
|
|
かか ききき くくく けけけ
|
|
NULL あああああ NULL NULL
|
|
NULL いいいいい NULL NULL
|
|
NULL ううううう NULL NULL
|
|
DESC `あああ`;
|
|
Field Type Null Key Default Extra
|
|
かか char(1) YES MUL NULL
|
|
ききき char(6) NO PRI
|
|
くくく char(1) YES UNI NULL
|
|
けけけ char(1) YES NULL
|
|
SHOW CREATE TABLE `あああ`;
|
|
Table Create Table
|
|
あああ CREATE TABLE `あああ` (
|
|
`かか` char(1) DEFAULT NULL,
|
|
`ききき` char(6) NOT NULL DEFAULT '',
|
|
`くくく` char(1) DEFAULT NULL,
|
|
`けけけ` char(1) DEFAULT NULL,
|
|
PRIMARY KEY (`ききき`),
|
|
UNIQUE KEY `くくく` (`くくく`),
|
|
KEY `かかか` (`かか`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
|
ALTER TABLE `あああ` DROP INDEX `かかか`;
|
|
ALTER TABLE `あああ` DROP PRIMARY KEY;
|
|
ALTER TABLE `あああ` DROP INDEX `くくく`;
|
|
ALTER TABLE `あああ` DROP `かか`;
|
|
ALTER TABLE `あああ` DROP `くくく`;
|
|
ALTER TABLE `あああ` DROP `けけけ`;
|
|
SELECT * FROM `あああ`;
|
|
ききき
|
|
あああああ
|
|
いいいいい
|
|
ううううう
|
|
DESC `あああ`;
|
|
Field Type Null Key Default Extra
|
|
ききき char(6) NO
|
|
SHOW CREATE TABLE `あああ`;
|
|
Table Create Table
|
|
あああ CREATE TABLE `あああ` (
|
|
`ききき` char(6) NOT NULL DEFAULT ''
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
|
ALTER TABLE `龖龖龖` ADD `丄丄丄` char(1) FIRST;
|
|
ALTER TABLE `龖龖龖` ADD `丅丅丅` char(1) AFTER `丂丂丂`;
|
|
ALTER TABLE `龖龖龖` ADD `乚乚乚` char(1);
|
|
ALTER TABLE `龖龖龖` ADD INDEX (`丄丄丄`);
|
|
ALTER TABLE `龖龖龖` ADD PRIMARY KEY (`丂丂丂`);
|
|
ALTER TABLE `龖龖龖` ADD UNIQUE (`丅丅丅`);
|
|
ALTER TABLE `龖龖龖` CHANGE `丄丄丄` `丄丄` char(1);
|
|
ALTER TABLE `龖龖龖` MODIFY `丂丂丂` char(6);
|
|
SELECT * FROM `龖龖龖`;
|
|
丄丄 丂丂丂 丅丅丅 乚乚乚
|
|
NULL 丂丂丂丂丂 NULL NULL
|
|
NULL 丄丄丄丄丄 NULL NULL
|
|
NULL 丅丅丅丅丅 NULL NULL
|
|
DESC `龖龖龖`;
|
|
Field Type Null Key Default Extra
|
|
丄丄 char(1) YES MUL NULL
|
|
丂丂丂 char(6) NO PRI
|
|
丅丅丅 char(1) YES UNI NULL
|
|
乚乚乚 char(1) YES NULL
|
|
SHOW CREATE TABLE `龖龖龖`;
|
|
Table Create Table
|
|
龖龖龖 CREATE TABLE `龖龖龖` (
|
|
`丄丄` char(1) DEFAULT NULL,
|
|
`丂丂丂` char(6) NOT NULL DEFAULT '',
|
|
`丅丅丅` char(1) DEFAULT NULL,
|
|
`乚乚乚` char(1) DEFAULT NULL,
|
|
PRIMARY KEY (`丂丂丂`),
|
|
UNIQUE KEY `丅丅丅` (`丅丅丅`),
|
|
KEY `丄丄丄` (`丄丄`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
|
ALTER TABLE `龖龖龖` DROP INDEX `丄丄丄`;
|
|
ALTER TABLE `龖龖龖` DROP PRIMARY KEY;
|
|
ALTER TABLE `龖龖龖` DROP INDEX `丅丅丅`;
|
|
ALTER TABLE `龖龖龖` DROP `丄丄`;
|
|
ALTER TABLE `龖龖龖` DROP `丅丅丅`;
|
|
ALTER TABLE `龖龖龖` DROP `乚乚乚`;
|
|
SELECT * FROM `龖龖龖`;
|
|
丂丂丂
|
|
丂丂丂丂丂
|
|
丄丄丄丄丄
|
|
丅丅丅丅丅
|
|
DESC `龖龖龖`;
|
|
Field Type Null Key Default Extra
|
|
丂丂丂 char(6) NO
|
|
SHOW CREATE TABLE `龖龖龖`;
|
|
Table Create Table
|
|
龖龖龖 CREATE TABLE `龖龖龖` (
|
|
`丂丂丂` char(6) NOT NULL DEFAULT ''
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
|
DROP TABLE `アアア`;
|
|
DROP TABLE `イイイ`;
|
|
DROP TABLE `あああ`;
|
|
DROP TABLE `いいい`;
|
|
DROP TABLE `龖龖龖`;
|
|
DROP TABLE `龗龗龗`;
|
|
CREATE TABLE `アアア`(`キキキ` char(5)) DEFAULT CHARSET = utf8 engine=MEMORY;
|
|
CREATE TABLE `イイイ`(`ケケケ` char(5)) DEFAULT CHARSET = utf8 engine=MEMORY;
|
|
CREATE TABLE `あああ`(`ききき` char(5)) DEFAULT CHARSET = utf8 engine=MEMORY;
|
|
CREATE TABLE `いいい`(`けけけ` char(5)) DEFAULT CHARSET = utf8 engine=MEMORY;
|
|
CREATE TABLE `龖龖龖`(`丂丂丂` char(5)) DEFAULT CHARSET = utf8 engine=MEMORY;
|
|
CREATE TABLE `龗龗龗`(`乚乚乚` char(5)) DEFAULT CHARSET = utf8 engine=MEMORY;
|
|
INSERT INTO `アアア` VALUES ('アアアアア'),('イイイイイ'),('ウウウウウ');
|
|
INSERT INTO `あああ` VALUES ('あああああ'),('いいいいい'),('ううううう');
|
|
INSERT INTO `龖龖龖` VALUES ('丂丂丂丂丂'),('丄丄丄丄丄'),('丅丅丅丅丅');
|
|
ALTER TABLE `アアア` ADD `カカカ` char(1) FIRST;
|
|
ALTER TABLE `アアア` ADD `ククク` char(1) AFTER `キキキ`;
|
|
ALTER TABLE `アアア` ADD `ケケケ` char(1);
|
|
ALTER TABLE `アアア` ADD INDEX (`カカカ`);
|
|
ALTER TABLE `アアア` ADD PRIMARY KEY (`キキキ`);
|
|
ALTER TABLE `アアア` ADD UNIQUE (`ククク`);
|
|
ALTER TABLE `アアア` CHANGE `カカカ` `カカ` char(1);
|
|
ALTER TABLE `アアア` MODIFY `キキキ` char(6);
|
|
SELECT * FROM `アアア`;
|
|
カカ キキキ ククク ケケケ
|
|
NULL アアアアア NULL NULL
|
|
NULL イイイイイ NULL NULL
|
|
NULL ウウウウウ NULL NULL
|
|
DESC `アアア`;
|
|
Field Type Null Key Default Extra
|
|
カカ char(1) YES MUL NULL
|
|
キキキ char(6) NO PRI
|
|
ククク char(1) YES UNI NULL
|
|
ケケケ char(1) YES NULL
|
|
SHOW CREATE TABLE `アアア`;
|
|
Table Create Table
|
|
アアア CREATE TABLE `アアア` (
|
|
`カカ` char(1) DEFAULT NULL,
|
|
`キキキ` char(6) NOT NULL DEFAULT '',
|
|
`ククク` char(1) DEFAULT NULL,
|
|
`ケケケ` char(1) DEFAULT NULL,
|
|
PRIMARY KEY (`キキキ`),
|
|
UNIQUE KEY `ククク` (`ククク`),
|
|
KEY `カカカ` (`カカ`)
|
|
) ENGINE=MEMORY DEFAULT CHARSET=utf8
|
|
ALTER TABLE `アアア` DROP INDEX `カカカ`;
|
|
ALTER TABLE `アアア` DROP PRIMARY KEY;
|
|
ALTER TABLE `アアア` DROP INDEX `ククク`;
|
|
ALTER TABLE `アアア` DROP `カカ`;
|
|
ALTER TABLE `アアア` DROP `ククク`;
|
|
ALTER TABLE `アアア` DROP `ケケケ`;
|
|
SELECT * FROM `アアア`;
|
|
キキキ
|
|
アアアアア
|
|
イイイイイ
|
|
ウウウウウ
|
|
DESC `アアア`;
|
|
Field Type Null Key Default Extra
|
|
キキキ char(6) NO
|
|
SHOW CREATE TABLE `アアア`;
|
|
Table Create Table
|
|
アアア CREATE TABLE `アアア` (
|
|
`キキキ` char(6) NOT NULL DEFAULT ''
|
|
) ENGINE=MEMORY DEFAULT CHARSET=utf8
|
|
ALTER TABLE `あああ` ADD `かかか` char(1) FIRST;
|
|
ALTER TABLE `あああ` ADD `くくく` char(1) AFTER `ききき`;
|
|
ALTER TABLE `あああ` ADD `けけけ` char(1);
|
|
ALTER TABLE `あああ` ADD INDEX (`かかか`);
|
|
ALTER TABLE `あああ` ADD PRIMARY KEY (`ききき`);
|
|
ALTER TABLE `あああ` ADD UNIQUE (`くくく`);
|
|
ALTER TABLE `あああ` CHANGE `かかか` `かか` char(1);
|
|
ALTER TABLE `あああ` MODIFY `ききき` char(6);
|
|
SELECT * FROM `あああ`;
|
|
かか ききき くくく けけけ
|
|
NULL あああああ NULL NULL
|
|
NULL いいいいい NULL NULL
|
|
NULL ううううう NULL NULL
|
|
DESC `あああ`;
|
|
Field Type Null Key Default Extra
|
|
かか char(1) YES MUL NULL
|
|
ききき char(6) NO PRI
|
|
くくく char(1) YES UNI NULL
|
|
けけけ char(1) YES NULL
|
|
SHOW CREATE TABLE `あああ`;
|
|
Table Create Table
|
|
あああ CREATE TABLE `あああ` (
|
|
`かか` char(1) DEFAULT NULL,
|
|
`ききき` char(6) NOT NULL DEFAULT '',
|
|
`くくく` char(1) DEFAULT NULL,
|
|
`けけけ` char(1) DEFAULT NULL,
|
|
PRIMARY KEY (`ききき`),
|
|
UNIQUE KEY `くくく` (`くくく`),
|
|
KEY `かかか` (`かか`)
|
|
) ENGINE=MEMORY DEFAULT CHARSET=utf8
|
|
ALTER TABLE `あああ` DROP INDEX `かかか`;
|
|
ALTER TABLE `あああ` DROP PRIMARY KEY;
|
|
ALTER TABLE `あああ` DROP INDEX `くくく`;
|
|
ALTER TABLE `あああ` DROP `かか`;
|
|
ALTER TABLE `あああ` DROP `くくく`;
|
|
ALTER TABLE `あああ` DROP `けけけ`;
|
|
SELECT * FROM `あああ`;
|
|
ききき
|
|
あああああ
|
|
いいいいい
|
|
ううううう
|
|
DESC `あああ`;
|
|
Field Type Null Key Default Extra
|
|
ききき char(6) NO
|
|
SHOW CREATE TABLE `あああ`;
|
|
Table Create Table
|
|
あああ CREATE TABLE `あああ` (
|
|
`ききき` char(6) NOT NULL DEFAULT ''
|
|
) ENGINE=MEMORY DEFAULT CHARSET=utf8
|
|
ALTER TABLE `龖龖龖` ADD `丄丄丄` char(1) FIRST;
|
|
ALTER TABLE `龖龖龖` ADD `丅丅丅` char(1) AFTER `丂丂丂`;
|
|
ALTER TABLE `龖龖龖` ADD `乚乚乚` char(1);
|
|
ALTER TABLE `龖龖龖` ADD INDEX (`丄丄丄`);
|
|
ALTER TABLE `龖龖龖` ADD PRIMARY KEY (`丂丂丂`);
|
|
ALTER TABLE `龖龖龖` ADD UNIQUE (`丅丅丅`);
|
|
ALTER TABLE `龖龖龖` CHANGE `丄丄丄` `丄丄` char(1);
|
|
ALTER TABLE `龖龖龖` MODIFY `丂丂丂` char(6);
|
|
SELECT * FROM `龖龖龖`;
|
|
丄丄 丂丂丂 丅丅丅 乚乚乚
|
|
NULL 丂丂丂丂丂 NULL NULL
|
|
NULL 丄丄丄丄丄 NULL NULL
|
|
NULL 丅丅丅丅丅 NULL NULL
|
|
DESC `龖龖龖`;
|
|
Field Type Null Key Default Extra
|
|
丄丄 char(1) YES MUL NULL
|
|
丂丂丂 char(6) NO PRI
|
|
丅丅丅 char(1) YES UNI NULL
|
|
乚乚乚 char(1) YES NULL
|
|
SHOW CREATE TABLE `龖龖龖`;
|
|
Table Create Table
|
|
龖龖龖 CREATE TABLE `龖龖龖` (
|
|
`丄丄` char(1) DEFAULT NULL,
|
|
`丂丂丂` char(6) NOT NULL DEFAULT '',
|
|
`丅丅丅` char(1) DEFAULT NULL,
|
|
`乚乚乚` char(1) DEFAULT NULL,
|
|
PRIMARY KEY (`丂丂丂`),
|
|
UNIQUE KEY `丅丅丅` (`丅丅丅`),
|
|
KEY `丄丄丄` (`丄丄`)
|
|
) ENGINE=MEMORY DEFAULT CHARSET=utf8
|
|
ALTER TABLE `龖龖龖` DROP INDEX `丄丄丄`;
|
|
ALTER TABLE `龖龖龖` DROP PRIMARY KEY;
|
|
ALTER TABLE `龖龖龖` DROP INDEX `丅丅丅`;
|
|
ALTER TABLE `龖龖龖` DROP `丄丄`;
|
|
ALTER TABLE `龖龖龖` DROP `丅丅丅`;
|
|
ALTER TABLE `龖龖龖` DROP `乚乚乚`;
|
|
SELECT * FROM `龖龖龖`;
|
|
丂丂丂
|
|
丂丂丂丂丂
|
|
丄丄丄丄丄
|
|
丅丅丅丅丅
|
|
DESC `龖龖龖`;
|
|
Field Type Null Key Default Extra
|
|
丂丂丂 char(6) NO
|
|
SHOW CREATE TABLE `龖龖龖`;
|
|
Table Create Table
|
|
龖龖龖 CREATE TABLE `龖龖龖` (
|
|
`丂丂丂` char(6) NOT NULL DEFAULT ''
|
|
) ENGINE=MEMORY DEFAULT CHARSET=utf8
|
|
DROP TABLE `アアア`;
|
|
DROP TABLE `イイイ`;
|
|
DROP TABLE `あああ`;
|
|
DROP TABLE `いいい`;
|
|
DROP TABLE `龖龖龖`;
|
|
DROP TABLE `龗龗龗`;
|