indexing - What happens if I drop a MySQL column without dropping its index first? -


with 1 of mysql tables, dropped column col1 before drop unique index (col0, col1, col2, col3) contains it.

is automatically taken care of mysql? seems unique index (col0, col1, col2, col3) automatically changed (col0, col2, col3) after deleted column col1.

is going problem or have drop unique index , re-create (col0, col2, col3)?

according the mysql 5.1 reference manual:

if columns dropped table, columns removed index of part. if columns make index dropped, index dropped well. if use change or modify shorten column index exists on column, , resulting column length less index length, mysql shortens index automatically.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -