You are here: Re: how do I drop a foreign key in MySQL 4 « PHP SQL « IT news, forums, messages
Re: how do I drop a foreign key in MySQL 4

Posted by Peter van Schie on 06/30/06 10:51

laredotornado@zipmail.com schreef:
> Hi, I want to drop a foreign key constraint in MySQL 4, but i keep
> getting this error:
>
> mysql> ALTER TABLE ORDER_FORM_CARTRIDGES DROP FOREIGN KEY
> FK2_ORDER_FORM_CARTRIDGES;
> ERROR 1005: Can't create table './REFILLSTATION/#sql-6e1_11.frm'
> (errno: 150)
>
> Grateful for any advice, - Dave
>

Hi Dave,

If you issue the command SHOW INNODB STATUS right after your ALTER TABLE
command, what output do you get? It should give you additional info
concerning the error you just got.

HTH.
Peter.
--
http://www.phpforums.nl

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация