| Bug #61942 | Mysql command to modify the unique index of a table | ||
|---|---|---|---|
| Submitted: | 21 Jul 2011 12:53 | Modified: | 21 Jul 2011 14:51 |
| Reporter: | uday kumar rajarapu | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: DML | Severity: | S5 (Performance) |
| Version: | mysql 5.5 | OS: | Linux |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | addind a column as a unique index to existing one's | ||
[21 Jul 2011 12:53]
uday kumar rajarapu
[21 Jul 2011 14:51]
Valeriy Kravchuk
You can try to do it with one ALTER TABLE: alter table ismatm drop index idx_ismatm, add unique index idx_ismatm on ismatm(ATMASTGRP,ATMCODE,ATMVPMSIZE,ORGID); There is no other solution. See http://dev.mysql.com/doc/refman/5.5/en/alter-table.html.
