alter table Drop / Deleting Foreign Key in MySQL

To remove the key:
ALTER TABLE table_name DROP KEY `key_column`;
To remove  foreign key:
ALTER TABLE table_name DROP FOREIGN KEY `table_name_ibfk_1`;

Comments

Popular posts from this blog

Real-Time Web Interface to MQTT using Socket.io and Node.js

Insert session variable into MySQL database

Insert CheckBox and Radio button Data in MySQL Database Using PHP