I have a table whose primary key is used in several other tables and has several foreign keys to other tables.
CREATE TABLE location ( locationID INT NOT
The foreign keys are there to ensure data integrity, so you can't drop a column as long as it's part of a foreign key. You need to drop the key first.
I would think the following query would do it:
ALTER TABLE assignmentStuff DROP FOREIGN KEY assignmentIDX;