You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following case is useful in reorganizing primary without the risk of duplicated primary key:
CREATETABLEt1 (id intprimary key, c1 intnot null);
ALTERTABLE t1
DROP PRIMARY KEY,
ADD PRIMARY KEY (id, c1);
Expected:
Query OK, 0 rows affected (0.01 sec)
But got:
mysql> ALTER TABLE t1
-> DROP PRIMARY KEY,
-> ADD PRIMARY KEY (id, c1);
ERROR 8200 (HY000): Unsupported drop primary key when the table's pkIsHandle is true
The text was updated successfully, but these errors were encountered:
The following case is useful in reorganizing primary without the risk of duplicated primary key:
Expected:
But got:
The text was updated successfully, but these errors were encountered: