MYSQL - Cannot able to drop a column -


I am using MYSQL 5.1. When I try to drop a column in a table, it throws the following error MATERIAL_OUTWARD_ID is a foreign key.

query:

  changes table `tispa`. Customer_invoice drop `MATERIAL_OUTWARD_ID`  

Error:

  Rename in name ' \ Tispa \ # sql-78_8 'to \ Tispa \ customer_invoice '(errno: 150)  

Try to leave the foreign key Do you?

  Changing table ... drop main foreign content _OUTWARD_ID  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -