1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Introduce keys in child tables corresponding to FOREIGN KEYs

Remove redundant keys in CREATE TABLE and ALTER TABLE
This commit is contained in:
marko@hundin.mysql.fi
2004-04-21 13:15:43 +03:00
parent ecfe6ebb59
commit df5336a3cc
9 changed files with 68 additions and 48 deletions

View File

@ -22,8 +22,6 @@ show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) default NULL,
UNIQUE KEY `constraint_1` (`a`),
UNIQUE KEY `key_1` (`a`),
UNIQUE KEY `key_2` (`a`)
UNIQUE KEY `constraint_1` (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;