List:General Discussion« Previous MessageNext Message »
From:kayamboo Date:December 9 2002 1:07am
Subject:Re: Re: alter table syntax
View as plain text  
Thanks for the suggestions.
It worked fine


regards

----- Original Message -----
From: "Egor Egorov" <egor.egorov@stripped>
To: <mysql@stripped>
Sent: Friday, December 06, 2002 11:36 PM
Subject: re: Re: alter table syntax


> kayamboo,
> Friday, December 06, 2002, 9:15:04 AM, you wrote:
>
>
> k> When I tried to drop the key, this was the error
>
> k> mysql> alter table town_db drop primary key ;
> k> ERROR 1025: Error on rename of '.\forest\#sql-f6_1' to
'.\forest\town_db'
> k> (errno: 150)
>
> k> I suppose some lock in the index somewhere but couldnot figure it out.
>
> Did you have another table with foreign key constraints for which
> town_db is a parent table? If so, you need to create index on the
> 'town' and then drop PRIMARY KEY.
>
>
>
>
> --
> For technical support contracts, goto https://order.mysql.com/?ref=ensita
> This email is sponsored by Ensita.net http://www.ensita.net/
>    __  ___     ___ ____  __
>   /  |/  /_ __/ __/ __ \/ /    Egor Egorov
>  / /|_/ / // /\ \/ /_/ / /__   Egor.Egorov@stripped
> /_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
>        <___/   www.mysql.com
>
>
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <mysql-thread126816@stripped>
> To unsubscribe, e-mail
<mysql-unsubscribe-kayamboosuresh=softhome.net@stripped>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>

Thread
alter table syntaxkayamboo6 Dec
  • Re: alter table syntaxR. Hannes Niedner6 Dec
    • Re: alter table syntaxkayamboo6 Dec
      • re: Re: alter table syntaxEgor Egorov6 Dec
      • Re: alter table syntaxDan Nelson6 Dec
    • Re: alter table syntaxkayamboo9 Dec
      • Re: alter table syntaxDan Nelson9 Dec
    • Re: Re: alter table syntaxkayamboo9 Dec
    • Re: alter table syntaxListen Hinz9 Dec