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

Script For Login, Logout and View Using PHP, MySQL and Bootstrap

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

Customize radio buttons and checkboxes with CSS sprites