MySQL Drop column along with all it's foreign key constraints (PHP PDO) -


i trying drop column of table via php (pdo). there foreign key constraint on column in question.

so drop constraints placed on column along column.

dbcon::getcon()->query('alter table `module_column` drop column `module_id`'); 

how drop foreign key constraints along column?


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -