AFAIK, dropping the constraint, then rename, then add the constraint back is the only way. Backup first!
More Related Contents:
- Can table columns with a Foreign Key be NULL?
- You can’t specify target table for update in FROM clause
- MySQL Cannot Add Foreign Key Constraint
- Generating a range of numbers in MySQL
- How to get next/previous record in MySQL?
- How do I make a row generator in MySQL?
- MySQL INSERT INTO table VALUES.. vs INSERT INTO table SET
- MySQL number of items within “in clause”
- Error 1046 No database Selected, how to resolve?
- What’s the difference between VARCHAR and CHAR?
- Alter a MySQL column to be AUTO_INCREMENT
- Is there something wrong with joins that don’t use the JOIN keyword in SQL or MySQL?
- MySQL ON DUPLICATE KEY UPDATE for multiple rows insert in single query
- single fixed table with multiple columns vs flexible abstract tables
- How can I find which tables reference a given table in Oracle SQL Developer?
- MySQL remove duplicates from big database quick
- mysql, iterate through column names
- How to delete from select in MySQL?
- How can I INSERT data into two tables simultaneously in SQL Server?
- How to delete Duplicates in MySQL table
- How to ORDER BY a SUM() in MySQL?
- mySQL Returning the top 5 of each category
- Selecting Random Rows in MySQL
- What is causing Foreign Key Mismatch error?
- MySQL – how to front pad zip code with “0”?
- Find the number of columns in a table
- Mysql, reshape data from long / tall to wide
- MySQL: Compare differences between two tables
- Mysql strip time component from datetime
- How do I start auto increment from a specific point?