MySQL Forums
Forum List  »  Russian

Drop foreign key only if it exists
Posted by: Eugene Chechel
Date: July 17, 2008 02:26AM

Пишу так, не работает.
ALTER TABLE `object` DROP FOREIGN KEY IF EXISTS `object_ibfk_1`;

как мне удалить ключ только в том случае если он существует?

Options: ReplyQuote


Subject
Views
Written By
Posted
Drop foreign key only if it exists
5488
July 17, 2008 02:26AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.