开发者

How to find dependencies on a table in mysql 5.0?

I am trying to drop a table in MySQL but its complaining about "Cannot delete or update a parent row: a foreign key constraint fails"...

Is there a way to find out all the table dependencies and objects dependent on it?

For sybase, DBArtisan g开发者_运维问答ives a really easy way to find dependecies. Is there any such tool for MySQL?


SHOW CREATE TABLE mytable;

It'll show you (along with some other stuff) the foreign key relationships for the table.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜