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:
alter table `tispa`.`customer_invoice` drop `MATERIAL_OUTWARD_ID`
Error:
Error on rename of '.\tispa\#sql-78_8' to '.\tispa\customer_invoice' (errno: 150)
I have fixed it.
First drop the foreign key like
Then drop the column like
It will work.