Thanks for the suggestions.
It worked fine


regards

----- Original Message -----
From: "Egor Egorov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>  / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
> /_/  /_/\_, /___/\___\_\___/   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 <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>


---------------------------------------------------------------------
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 <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


Reply via email to