0

How to delete or alter a foriegn Key?

I have used following codes Alter table table_name drop foriegn key foriegn_keyname; Alter table table_name drop key foriegn_keyname; Alter table table_name drop column colum_name; But none of these are working. It's giving some rename error;

11th Sep 2016, 5:43 PM
Kailash Prasad
Kailash Prasad - avatar
2 Respostas
0
use ALTER TABLE Table_name DROP FOREIGN KEY; you don't need to write foreign key name.
12th Sep 2016, 6:10 PM
Solo Player Sabin
Solo Player Sabin - avatar
0
I have tried that also but its not working.
12th Sep 2016, 7:27 PM
Kailash Prasad
Kailash Prasad - avatar