hii i need to drop a foreign key for a table and create a new foreign key how do i do it ..i tried
they asked to check the comment column for the foreign key so as to delete it by using
but the comment column consist of anything like the code...any help on this?
Code:
SHOW TABLE STATUS FROM ratingd LIKE 'fourwheeler_rating'; +--------------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------------+----------+----------------+-----------------------+ | Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time | Update_time | Check_time | Collation | Checksum | Create_options | Comment | +--------------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------------+----------+----------------+-----------------------+ | fourwheeler_rating | InnoDB | 10 | Compact | 0 | 0 | 16384 | 0 | 16384 | 0 | 1 | 2010-03-16 15:54:11 | NULL | NULL | utf8_unicode_ci | NULL | | InnoDB free: 41984 kB | +--------------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------------+----------+----------------+-----------------------+ 1 row in set (0.01 sec)
Code:
alter table fourwheeler_rating drop foreign key 0_172;
but the comment column consist of anything like the code...any help on this?
Comment